Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ekarak-aisera committed Dec 18, 2023
1 parent 8983164 commit b3877c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/helm/charts/templates/snapshot-class.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{ if or (.Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1/VolumeSnapshotClass") (.Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1/VolumeSnapshotClass") }}
kind: VolumeSnapshotClass
apiVersion: {{ if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1/VolumeSnapshotClass" -}}
snapshot.storage.k8s.io/v1beta1
{{- else -}}
apiVersion: {{ if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1/VolumeSnapshotClass" -}}
snapshot.storage.k8s.io/v1
{{- else -}}
snapshot.storage.k8s.io/v1beta1
{{- end }}
metadata:
name: csi-cstor-snapshotclass
Expand Down

0 comments on commit b3877c5

Please sign in to comment.