diff --git a/deploy/apollo/apollo-rhworker/templates/cronjob.yaml b/deploy/apollo/apollo-rhworker/templates/cronjob.yaml index 52dfc41..6027f1c 100644 --- a/deploy/apollo/apollo-rhworker/templates/cronjob.yaml +++ b/deploy/apollo/apollo-rhworker/templates/cronjob.yaml @@ -31,11 +31,12 @@ spec: imagePullPolicy: IfNotPresent command: ["/bin/bash", "-c"] args: + - | {{- range $cmd := $.Values.cron.preCommand }} - - {{ $cmd }} + {{ $cmd }} {{- end }} - - tctl wf run --tq v2-rhworker --wt PollRHAdvisoriesWorkflow + tctl wf run --tq v2-rhworker --wt PollRHAdvisoriesWorkflow {{- range $cmd := $.Values.cron.postCommand }} - - {{ $cmd }} + {{ $cmd }} {{- end }} {{- end }}