Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix. change static keycloak domain render directory to dynamic #304

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions git-repo/create-contract-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,13 @@ spec:
rm -rf aws-reference/openstack aws-reference/decapod-controller aws-reference/admin-tools
rm -rf byoh-reference/openstack byoh-reference/decapod-controller byoh-reference/admin-tools

site_list=$(ls -d */ | sed 's/\///g' | egrep "-reference$")
# Append Keycloak URL and Realm info
KEYCLOAK_DOMAIN="${KEYCLOAK_URL#https://}"
sed -i "/keycloakDomain:/c\ keycloakDomain: ${KEYCLOAK_DOMAIN}" aws-reference/lma/site-values.yaml
sed -i "/realms:/c\ realms: ${CONTRACT_ID}" aws-reference/lma/site-values.yaml
sed -i "/keycloakDomain:/c\ keycloakDomain: ${KEYCLOAK_DOMAIN}" eks-reference/lma/site-values.yaml
sed -i "/realms:/c\ realms: ${CONTRACT_ID}" eks-reference/lma/site-values.yaml
sed -i "/keycloakDomain:/c\ keycloakDomain: ${KEYCLOAK_DOMAIN}" aws-msa-reference/lma/site-values.yaml
sed -i "/realms:/c\ realms: ${CONTRACT_ID}" aws-msa-reference/lma/site-values.yaml
sed -i "/keycloakDomain:/c\ keycloakDomain: ${KEYCLOAK_DOMAIN}" eks-msa-reference/lma/site-values.yaml
sed -i "/realms:/c\ realms: ${CONTRACT_ID}" eks-msa-reference/lma/site-values.yaml
for site in ${site_list}
do
yq -i e ".global.keycloakDomain=\"$KEYCLOAK_DOMAIN\"" $site/lma/site-values.yaml
done

git config --global user.email "taco_support@sk.com"
git config --global user.name "SKTelecom TACO"
Expand Down