|
|
|
@ -23,14 +23,7 @@ spec:
|
|
|
|
|
read token server <<< "${output}"
|
|
|
|
|
user="00000000-0000-0000-0000-000000000000"
|
|
|
|
|
|
|
|
|
|
echo "Creating secret: ${KUBE_SECRET}"
|
|
|
|
|
/kbin/kubectl create secret docker-registry "${KUBE_SECRET}" \
|
|
|
|
|
--docker-server="${server}" \
|
|
|
|
|
--docker-username="00000000-0000-0000-0000-000000000000" \
|
|
|
|
|
--docker-password="${token}" \
|
|
|
|
|
--dry-run=client -o=yaml \
|
|
|
|
|
| grep -v "creationTimestamp:" \
|
|
|
|
|
| /kbin/kubectl apply -f -
|
|
|
|
|
apply-secret "${KUBE_SECRET}" "${token}" "${user}" "${server}"
|
|
|
|
|
|
|
|
|
|
echo "Finished ACR token sync -- $(date)"
|
|
|
|
|
echo
|
|
|
|
|