diff --git a/deploy/helm/templates/dataprotection.yaml b/deploy/helm/templates/dataprotection.yaml index 4f589d7cdd2..4c1be2a4460 100644 --- a/deploy/helm/templates/dataprotection.yaml +++ b/deploy/helm/templates/dataprotection.yaml @@ -80,7 +80,10 @@ spec: - name: VOLUMESNAPSHOT value: "true" {{- end }} - {{- if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1" }} + {{- if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1" }} + - name: VOLUMESNAPSHOT_API_BETA + value: "false" + {{- else if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1" }} - name: VOLUMESNAPSHOT_API_BETA value: "true" {{- end }} diff --git a/deploy/helm/templates/deployment.yaml b/deploy/helm/templates/deployment.yaml index 494b9acea5d..04717d0b058 100644 --- a/deploy/helm/templates/deployment.yaml +++ b/deploy/helm/templates/deployment.yaml @@ -89,7 +89,10 @@ spec: - name: VOLUMESNAPSHOT value: "true" {{- end }} - {{- if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1" }} + {{- if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1" }} + - name: VOLUMESNAPSHOT_API_BETA + value: "false" + {{- else if .Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta1" }} - name: VOLUMESNAPSHOT_API_BETA value: "true" {{- end }}