Skip to content

Commit

Permalink
bugfix. not supported in docker image. change yq -> sed
Browse files Browse the repository at this point in the history
  • Loading branch information
cho4036 committed Nov 7, 2023
1 parent 650e8be commit d99cda0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions git-repo/create-contract-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,16 @@ spec:
# For now, this hardcoding seems enough.
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://}"
for site in ${site_list}
do
yq -i e ".global.keycloakDomain=\"$KEYCLOAK_DOMAIN\"" $site/lma/site-values.yaml
sed -i "/keycloakDomain:/c\ keycloakDomain: ${KEYCLOAK_DOMAIN}" "$site/lma/site-values.yaml"
sed -i "/realms:/c\ realms: ${CONTRACT_ID}" "$site/lma/site-values.yaml"
done
git config --global user.email "[email protected]"
git config --global user.name "SKTelecom TACO"
git add .
Expand Down

0 comments on commit d99cda0

Please sign in to comment.