Skip to content

Commit

Permalink
fix: use semverCompare
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPsychick committed Dec 21, 2023
1 parent df43ef2 commit 9682ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickhub/cronjobs/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
failedJobsHistoryLimit: {{ default 1 .failedJobsHistoryLimit }}
successfulJobsHistoryLimit: {{ default 1 .successfulJobsHistoryLimit }}
schedule: {{ .schedule | quote }}
{{- if and (ge (int $.Capabilities.KubeVersion.Minor) 27) .timeZone }}
{{- if and (semverCompare ">=1.27.0" $.Capabilities.KubeVersion.Version) .timeZone }}
timeZone: {{ .timeZone }}
{{- end }}
{{- if .suspend }}
Expand Down

0 comments on commit 9682ef2

Please sign in to comment.