Skip to content

Commit b3877c5

Browse files
committed
fixes #456
1 parent 8983164 commit b3877c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy/helm/charts/templates/snapshot-class.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{ if or (.Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1/VolumeSnapshotClass") (.Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1/VolumeSnapshotClass") }}
22
kind: VolumeSnapshotClass
3-
apiVersion: {{ if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1/VolumeSnapshotClass" -}}
4-
snapshot.storage.k8s.io/v1beta1
5-
{{- else -}}
3+
apiVersion: {{ if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1/VolumeSnapshotClass" -}}
64
snapshot.storage.k8s.io/v1
5+
{{- else -}}
6+
snapshot.storage.k8s.io/v1beta1
77
{{- end }}
88
metadata:
99
name: csi-cstor-snapshotclass

0 commit comments

Comments
 (0)