From 372ffddba97145daf1ab631b3f0129096516633d Mon Sep 17 00:00:00 2001 From: Elias Karakoulakis Date: Mon, 18 Dec 2023 15:34:34 +0200 Subject: [PATCH] fixes #456 Signed-off-by: Elias Karakoulakis --- deploy/helm/charts/templates/snapshot-class.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/helm/charts/templates/snapshot-class.yaml b/deploy/helm/charts/templates/snapshot-class.yaml index e709b20e..5386ecd5 100644 --- a/deploy/helm/charts/templates/snapshot-class.yaml +++ b/deploy/helm/charts/templates/snapshot-class.yaml @@ -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