From 4ddeaf6c99ddde5bff3faecfab7c6b77d5449913 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Thu, 11 Jan 2024 18:08:35 +0100 Subject: [PATCH] try this --- infrastructure/external-dns/cronjob.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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