1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Merge pull request #1729 from timja/patch-1

Avoid substitution issue in kustomize for azure credentials sync
This commit is contained in:
Stefan Prodan
2021-08-19 13:10:54 +03:00
committed by GitHub

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