1
0
mirror of synced 2026-02-07 03:05:56 +00:00

Avoid substitution issue in kustomize credentials sync

Signed-off-by: Tim Jacomb <tim.jacomb@hmcts.net>
This commit is contained in:
Tim Jacomb
2021-08-19 11:52:49 +01:00
parent 31da363495
commit 08f5ca39b0
4 changed files with 22 additions and 22 deletions

View File

@@ -48,10 +48,10 @@ spec:
$(RECONCILE_SH)
apply-secret() {
/kbin/kubectl create secret docker-registry "${1}" \
--docker-password="${2}" \
--docker-username="${3}" \
--docker-server="${4}" \
/kbin/kubectl create secret docker-registry "$1" \
--docker-password="$2" \
--docker-username="$3" \
--docker-server="$4" \
--dry-run=client -o=yaml \
| grep -v "creationTimestamp:" \
| /kbin/kubectl apply -f -