diff --git a/infrastructure/external-dns/cronjob.yaml b/infrastructure/external-dns/cronjob.yaml index 4107e63..8c96f24 100644 --- a/infrastructure/external-dns/cronjob.yaml +++ b/infrastructure/external-dns/cronjob.yaml @@ -12,7 +12,7 @@ spec: template: spec: - containers: + initContainers: - name: git image: git command: ["git"] @@ -23,7 +23,7 @@ spec: volumeMounts: - name: octodns-config mountPath: /etc/octodns - + containers: - name: octodns image: octodns env: @@ -45,11 +45,12 @@ spec: command: ["/bin/sh", "-c"] args: - - pip install -r /etc/octodns/requirements.txt - - "&&" - - octodns-sync --config-file /etc/octodns/config.yaml - - "&&" - - echo "done" + - >- + pip install -r /etc/octodns/requirements.txt + && + octodns-sync --config-file /etc/octodns/config.yaml + && + echo "done" #- --doit volumeMounts: - name: octodns-config