1
0
mirror of synced 2026-02-06 10:55:56 +00:00

Avoid substitution issue in kustomize for azure credentials sync

Signed-off-by: Tim Jacomb <tim.jacomb@hmcts.net>
This commit is contained in:
Tim Jacomb
2021-08-18 16:56:00 +01:00
committed by Tim Jacomb
parent 5eabd4e898
commit bc2de741b8

View File

@@ -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