Skip to content

Commit

Permalink
cronjob: fix generated yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlahde committed Jul 26, 2024
1 parent 66724b7 commit bb167f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions project-template/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ metadata:
name: {{ .Values.name }}
spec:
schedule: "{{- .Values.cronjob.schedule -}}"
concurrencyPolicy: {{- .Values.cronjob.concurrencyPolicy | default "Forbid" -}}
successfulJobsHistoryLimit: {{- .Values.cronjob.successfulJobsHistoryLimit | default "5" -}}
failedJobsHistoryLimit: {{- .Values.cronjob.failedJobsHistoryLimit | default "5" -}}
{{- if .Values.cronjob.startingDeadlineSeconds -}}
startingDeadlineSeconds: {{- .Values.cronjob.startingDeadlineSeconds -}}
{{- end -}}
concurrencyPolicy: {{ .Values.cronjob.concurrencyPolicy | default "Forbid" }}
successfulJobsHistoryLimit: {{ .Values.cronjob.successfulJobsHistoryLimit | default "5" }}
failedJobsHistoryLimit: {{ .Values.cronjob.failedJobsHistoryLimit | default "5" }}
{{- if .Values.cronjob.startingDeadlineSeconds }}
startingDeadlineSeconds: {{ .Values.cronjob.startingDeadlineSeconds }}
{{- end }}
suspend: {{ .Values.cronjob.suspend | default false }}
jobTemplate:
spec:
Expand Down

0 comments on commit bb167f5

Please sign in to comment.