Skip to content

Commit

Permalink
feat: handling null value in k8s cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKwan-shopline committed Dec 11, 2024
1 parent 5227ea9 commit ab04944
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cronjob/templates/_k8s_cronjob.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
cronjob_name: {{ .Values.name }}
spec:
backoffLimit: {{ .Values.job.retries }}
activeDeadlineSeconds: {{ .Values.job.timeout }}
{{- with .Values.job.timeout }}
activeDeadlineSeconds: {{ . }}
{{- end }}
template:
metadata:
annotations:
Expand Down

0 comments on commit ab04944

Please sign in to comment.