diff --git a/deploy/helm/charts/Chart.yaml b/deploy/helm/charts/Chart.yaml index 9eb5160b..6208e14d 100644 --- a/deploy/helm/charts/Chart.yaml +++ b/deploy/helm/charts/Chart.yaml @@ -4,7 +4,7 @@ description: CStor-Operator helm chart for Kubernetes type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 2.11.0 +version: 2.11.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. appVersion: 2.11.0 diff --git a/deploy/helm/charts/README.md b/deploy/helm/charts/README.md index 06f7b18e..43eaa3bd 100644 --- a/deploy/helm/charts/README.md +++ b/deploy/helm/charts/README.md @@ -238,4 +238,3 @@ helm install openebs-cstor openebs-cstor/cstor --namespace openebs --create-name | serviceAccount.csiController.name | string | `"openebs-cstor-csi-controller-sa"` | CSI Controller ServiceAccount name | | serviceAccount.csiNode.create | bool | `true` | Enable CSI Node ServiceAccount | | serviceAccount.csiNode.name | string | `"openebs-cstor-csi-node-sa"` | CSI Node ServiceAccount name | - diff --git a/deploy/helm/charts/templates/snapshot-class.yaml b/deploy/helm/charts/templates/snapshot-class.yaml index 6418d0d8..f70003fe 100644 --- a/deploy/helm/charts/templates/snapshot-class.yaml +++ b/deploy/helm/charts/templates/snapshot-class.yaml @@ -1,8 +1,12 @@ kind: VolumeSnapshotClass -apiVersion: snapshot.storage.k8s.io/v1 +apiVersion: {{ if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1" -}} + snapshot.storage.k8s.io/v1beta1 +{{- else -}} + snapshot.storage.k8s.io/v1 +{{- end }} metadata: name: csi-cstor-snapshotclass annotations: snapshot.storage.kubernetes.io/is-default-class: "true" driver: cstor.csi.openebs.io -deletionPolicy: Delete \ No newline at end of file +deletionPolicy: Delete