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

@@ -52,9 +52,9 @@ spec:
$(RECONCILE_SH)
apply-secret() {
/kbin/kubectl create secret generic "${1}" \
--from-literal=token="${2}" \
--from-literal=address="${3}" \
/kbin/kubectl create secret generic "$1" \
--from-literal=token="$2" \
--from-literal=address="$3" \
--dry-run=client -o=yaml \
| grep -v "creationTimestamp:" \
| /kbin/kubectl apply -f -