From 8bb8ccd9d4f7d92f7943684e970ad8849fe7dd77 Mon Sep 17 00:00:00 2001 From: Marcin Witalis Date: Thu, 28 May 2020 13:10:40 +0200 Subject: [PATCH] code comments addressed --- .../templates/crd-init-hydra-master.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/resources/cluster-essentials/templates/crd-init-hydra-master.yaml b/resources/cluster-essentials/templates/crd-init-hydra-master.yaml index 7436f7432659..924909a06a85 100644 --- a/resources/cluster-essentials/templates/crd-init-hydra-master.yaml +++ b/resources/cluster-essentials/templates/crd-init-hydra-master.yaml @@ -23,15 +23,10 @@ spec: mountPath: /etc/crd readOnly: true command: - - timeout - - 60s - - bash + - /bin/bash - -c - - |- - until \ - kubectl get crd oauth2clients.hydra.ory.sh \ - || kubectl apply -f /etc/crd/oauth2clients.yaml; \ - do sleep 2; done + - | + timeout 60s bash -c 'until kubectl apply -f /etc/crd/oauth2clients.yaml; do sleep 2; done' volumes: - name: crd-oauth2clients configMap: @@ -49,4 +44,4 @@ metadata: "helm.sh/hook-delete-policy": "before-hook-creation" data: oauth2clients.yaml: |- -{{.Files.Get "files/crd-oauth2clients.yaml" | printf "%s" | indent 4}} \ No newline at end of file +{{.Files.Get "files/crd-oauth2clients.yaml" | printf "%s" | indent 4}}