diff --git a/manifests/integrations/eventhub-credentials-sync/_base/sync.yaml b/manifests/integrations/eventhub-credentials-sync/_base/sync.yaml index 80d89a0dc52ac4b02b7eecbe68e17b77cc2dffbe..9e8ab4f5a82c64cfa75cac34e842cd43dae8bbec 100644 --- a/manifests/integrations/eventhub-credentials-sync/_base/sync.yaml +++ b/manifests/integrations/eventhub-credentials-sync/_base/sync.yaml @@ -50,16 +50,16 @@ 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 - } pause_loop() { - sleep "${SYNC_PERIOD:-3600}" || true + sleep "$SYNC_PERIOD" || true } graceful_exit() { @@ -71,8 +71,8 @@ spec: | tr [ % )" # shellcheck disable=SC2086 - if [ "${job_ids}" ]; then - kill ${job_ids} + if [ "$job_ids" ]; then + kill $job_ids fi wait echo "Graceful exit -- $(date)" @@ -80,7 +80,7 @@ spec: trap graceful_exit INT TERM - echo "Loop started (period: ${SYNC_PERIOD} s) -- $(date)" + echo "Loop started (period: $SYNC_PERIOD s) -- $(date)" while true; do reconcile & wait $! pause_loop & wait $! diff --git a/manifests/integrations/eventhub-credentials-sync/_cronjobs/_base/sync.yaml b/manifests/integrations/eventhub-credentials-sync/_cronjobs/_base/sync.yaml index 56d47856fc53549279d783a37cacc58aaba96e1b..f2525d962106767cc219a0ffec82171de64e8476 100644 --- a/manifests/integrations/eventhub-credentials-sync/_cronjobs/_base/sync.yaml +++ b/manifests/integrations/eventhub-credentials-sync/_cronjobs/_base/sync.yaml @@ -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 - diff --git a/manifests/integrations/registry-credentials-sync/_base/sync.yaml b/manifests/integrations/registry-credentials-sync/_base/sync.yaml index f827c2aa3f718761d7cde830741e4e105885a7d1..913b94e28eda3866a1850b2c9fd9a55aa2bed901 100644 --- a/manifests/integrations/registry-credentials-sync/_base/sync.yaml +++ b/manifests/integrations/registry-credentials-sync/_base/sync.yaml @@ -46,17 +46,17 @@ 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 - } pause_loop() { - sleep "${SYNC_PERIOD:-3600}" || true + sleep "$SYNC_PERIOD" || true } graceful_exit() { @@ -68,8 +68,8 @@ spec: | tr [ % )" # shellcheck disable=SC2086 - if [ "${job_ids}" ]; then - kill ${job_ids} + if [ "$job_ids" ]; then + kill $job_ids fi wait echo "Graceful exit -- $(date)" @@ -77,7 +77,7 @@ spec: trap graceful_exit INT TERM - echo "Loop started (period: ${SYNC_PERIOD} s) -- $(date)" + echo "Loop started (period: $SYNC_PERIOD s) -- $(date)" while true; do reconcile & wait $! pause_loop & wait $! diff --git a/manifests/integrations/registry-credentials-sync/_cronjobs/_base/sync.yaml b/manifests/integrations/registry-credentials-sync/_cronjobs/_base/sync.yaml index 2fcc3a2ab72ad9ff0b48c2b2ba2657a5153d5da2..fc00a3c6804412e25af918644c514551b5e11283 100644 --- a/manifests/integrations/registry-credentials-sync/_cronjobs/_base/sync.yaml +++ b/manifests/integrations/registry-credentials-sync/_cronjobs/_base/sync.yaml @@ -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 -