Commit 34eceef7 authored by Marco Wettstein's avatar Marco Wettstein
Browse files

fix: cronjobs broken

parent 1a1f9086
Pipeline #101569 passed with stages
in 25 seconds
......@@ -19,6 +19,9 @@ metadata:
spec:
schedule: {{ $job.schedule | quote}}
# concerning concurreny we also set it to allow as default like in kubernetes i
# see https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#concurrency-policy
concurrencyPolicy: "{{- default "Allow" $job.concurrencyPolicy -}}"
jobTemplate:
spec:
template:
......@@ -28,9 +31,6 @@ spec:
- name: {{ $context.Values.image.pullSecret }}
{{- end }}
restartPolicy: Never
# concerning concurreny we also set it to allow as default like in kubernetes i
# see https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#concurrency-policy
concurrencyPolicy: "{{- default "Allow" $job.concurrencyPolicy -}}"
containers:
- name: {{ $job.name }}-cronjob
{{include "env" $context | nindent 12}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment