Skip to content

Commit

Permalink
fix: use semverCompare
Browse files Browse the repository at this point in the history
fix: master -> main
  • Loading branch information
DrPsychick committed Dec 21, 2023
1 parent 84c98db commit 04b4261
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test Charts
on:
push:
branches:
- master
- main

pull_request:
types: [ opened, reopened, synchronize ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflows:
- "Test Charts"
branches:
- master
- main
types:
- completed

Expand Down
2 changes: 1 addition & 1 deletion sickhub/cronjobs/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
failedJobsHistoryLimit: {{ default 1 .failedJobsHistoryLimit }}
successfulJobsHistoryLimit: {{ default 1 .successfulJobsHistoryLimit }}
schedule: {{ .schedule | quote }}
{{- if and (semverCompare ">=1.27.0" $.Capabilities.KubeVersion.Version) .timeZone }}
{{- if and (ge (int $.Capabilities.KubeVersion.Minor) 27) .timeZone }}
timeZone: {{ .timeZone }}
{{- end }}
{{- if .suspend }}
Expand Down

0 comments on commit 04b4261

Please sign in to comment.