Skip to content

Commit

Permalink
Merge pull request #327 from cho4036/render-test-local
Browse files Browse the repository at this point in the history
Minor fix: add oidc configuration on k8s api
  • Loading branch information
ktkfree authored Nov 15, 2023
2 parents 24b41ce + 40d1f26 commit a6eb5f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git-repo/create-cluster-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ spec:
byoh)
cluster_endpoint_host=$(echo $CLUSTER_INFO | jq -r '.byoClusterEndpointHost')
cluster_endpoint_port=$(echo $CLUSTER_INFO | jq -r '.byoClusterEndpointPort')
client_id=${CLUSTER_ID}-k8s-api
yq -i e ".global.clusterEndpointHost=\"$cluster_endpoint_host\"" $CLUSTER_ID/$CLUSTER_ID/tks-cluster/site-values.yaml
yq -i e ".global.clusterEndpointPort=$cluster_endpoint_port" $CLUSTER_ID/$CLUSTER_ID/tks-cluster/site-values.yaml
yq -i e ".global.keycloakIssuerUri=$KEYCLOAK_URL" $CLUSTER_ID/$CLUSTER_ID/tks-cluster/site-values.yaml
yq -i e ".global.keycloakClientId=$client_id" $CLUSTER_ID/$CLUSTER_ID/tks-cluster/site-values.yaml
;;
*)
Expand Down Expand Up @@ -180,6 +183,8 @@ spec:
value: "{{workflow.parameters.template_name}}"
- name: CLOUD_ACCOUNT_ID
value: "{{workflow.parameters.cloud_account_id}}"
- name: KEYCLOAK_URL
value: "{{workflow.parameters.keycloak_url}}"
- name: CLUSTER_INFO
value: "{{inputs.parameters.cluster_info}}"
- name: ARGO_TOKEN
Expand Down

0 comments on commit a6eb5f0

Please sign in to comment.