Skip to content

Commit

Permalink
Fix Cronjob apiVersion for ArgoCD
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgenh committed Oct 9, 2024
1 parent 357b45e commit 8ca39f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Capabilities.APIVersions.Has "batch/v1/CronJob" -}}
{{- if or .Values.useArgoCD .Capabilities.APIVersions.Has "batch/v1/CronJob" -}}
apiVersion: batch/v1
{{- else }}
apiVersion: batch/v1beta1
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/scheduled-volume-snapshotter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
cronLabels: {}
#key: "value"

useArgoCD: false

image:
repository: ryaneorth/scheduled-volume-snapshotter
#tag: latest
Expand Down

0 comments on commit 8ca39f5

Please sign in to comment.