diff --git a/deploy/charts/rook-ceph-cluster/templates/volumesnapshotclass.yaml b/deploy/charts/rook-ceph-cluster/templates/volumesnapshotclass.yaml index 646824a76..5f15c9400 100644 --- a/deploy/charts/rook-ceph-cluster/templates/volumesnapshotclass.yaml +++ b/deploy/charts/rook-ceph-cluster/templates/volumesnapshotclass.yaml @@ -3,11 +3,7 @@ --- {{- if default false $filesystemvsc.enabled }} -{{- if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1" }} apiVersion: snapshot.storage.k8s.io/v1 -{{- else }} -apiVersion: snapshot.storage.k8s.io/v1beta1 -{{- end }} kind: VolumeSnapshotClass metadata: name: {{ $filesystemvsc.name }} @@ -33,11 +29,7 @@ deletionPolicy: {{ default "Delete" $filesystemvsc.deletionPolicy }} --- {{- if default false $blockpoolvsc.enabled }} -{{- if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1" }} apiVersion: snapshot.storage.k8s.io/v1 -{{- else }} -apiVersion: snapshot.storage.k8s.io/v1beta1 -{{- end }} kind: VolumeSnapshotClass metadata: name: {{ $blockpoolvsc.name }} diff --git a/deploy/examples/csi/cephfs/snapshot.yaml b/deploy/examples/csi/cephfs/snapshot.yaml index 2c734c511..be69639c3 100644 --- a/deploy/examples/csi/cephfs/snapshot.yaml +++ b/deploy/examples/csi/cephfs/snapshot.yaml @@ -1,7 +1,4 @@ --- -# 1.17 <= K8s <= v1.19 -# apiVersion: snapshot.storage.k8s.io/v1beta1 -# K8s >= v1.20 apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshot metadata: diff --git a/deploy/examples/csi/cephfs/snapshotclass.yaml b/deploy/examples/csi/cephfs/snapshotclass.yaml index 8fc847b68..5a8cdcece 100644 --- a/deploy/examples/csi/cephfs/snapshotclass.yaml +++ b/deploy/examples/csi/cephfs/snapshotclass.yaml @@ -1,7 +1,4 @@ --- -# 1.17 <= K8s <= v1.19 -# apiVersion: snapshot.storage.k8s.io/v1beta1 -# K8s >= v1.20 apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotClass metadata: diff --git a/deploy/examples/csi/rbd/snapshot.yaml b/deploy/examples/csi/rbd/snapshot.yaml index 9c27b410d..8dc24e8c2 100644 --- a/deploy/examples/csi/rbd/snapshot.yaml +++ b/deploy/examples/csi/rbd/snapshot.yaml @@ -1,7 +1,4 @@ --- -# 1.17 <= K8s <= v1.19 -# apiVersion: snapshot.storage.k8s.io/v1beta1 -# K8s >= v1.20 apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshot metadata: diff --git a/deploy/examples/csi/rbd/snapshotclass.yaml b/deploy/examples/csi/rbd/snapshotclass.yaml index 2ed388456..79ed5522d 100644 --- a/deploy/examples/csi/rbd/snapshotclass.yaml +++ b/deploy/examples/csi/rbd/snapshotclass.yaml @@ -1,7 +1,4 @@ --- -# 1.17 <= K8s <= v1.19 -# apiVersion: snapshot.storage.k8s.io/v1beta1 -# K8s >= v1.20 apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshotClass metadata: