diff --git a/sickhub/cronjobs/templates/cronjob.yaml b/sickhub/cronjobs/templates/cronjob.yaml index 195a1e7..1cf7373 100644 --- a/sickhub/cronjobs/templates/cronjob.yaml +++ b/sickhub/cronjobs/templates/cronjob.yaml @@ -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 }}