Skip to content

Commit

Permalink
Merge pull request #29 from GurgenHovhannisyan/main
Browse files Browse the repository at this point in the history
Fix Cronjob apiVersion for ArgoCD
  • Loading branch information
ryaneorth authored Oct 9, 2024
2 parents 357b45e + 8ca39f5 commit ebc8b83
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 ebc8b83

Please sign in to comment.