Skip to content

Commit

Permalink
Avoid substitution issue in kustomize for azure credentials sync
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Jacomb <tim.jacomb@hmcts.net>
  • Loading branch information
timja authored and Tim Jacomb committed Aug 18, 2021
1 parent 55bd93f commit 728f7b3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ spec:
echo "Starting ACR token sync -- $(date)"
echo "Logging into Azure"
az login --identity
echo "Logging into ACR: ${ACR_NAME}"
output="$(az acr login --expose-token -o=tsv -n "${ACR_NAME}")"
read token server <<< "${output}"
echo "Logging into ACR: $ACR_NAME"
output="$(az acr login --expose-token -o=tsv -n "$ACR_NAME")"
read token server <<< "$output"
user="00000000-0000-0000-0000-000000000000"
echo "Creating secret: ${KUBE_SECRET}"
apply-secret "${KUBE_SECRET}" "${token}" "${user}" "${server}"
echo "Creating secret: $KUBE_SECRET"
apply-secret "$KUBE_SECRET" "$token" "$user" "$server"
echo "Finished ACR token sync -- $(date)"
echo
Expand Down

0 comments on commit 728f7b3

Please sign in to comment.