Skip to content

Commit

Permalink
Update cronjob.yaml (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liav Yona authored Aug 14, 2023
1 parent ad75fca commit 787a8d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.2
version: 0.6.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions charts/chart/templates/cronjob.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{- if semverCompare ">=1.21-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: batch/v1
{{- else -}}
apiVersion: batch/v1beta1
{{- end }}
kind: CronJob
metadata:
name: {{ .Release.Name }}-cronjob
Expand Down

0 comments on commit 787a8d3

Please sign in to comment.