diff --git a/charts/latest/csi-driver-smb-v0.0.0.tgz b/charts/latest/csi-driver-smb-v0.0.0.tgz index 4049ac6d10b..5b045afb502 100644 Binary files a/charts/latest/csi-driver-smb-v0.0.0.tgz and b/charts/latest/csi-driver-smb-v0.0.0.tgz differ diff --git a/charts/latest/csi-driver-smb/templates/csi-smb-controller.yaml b/charts/latest/csi-driver-smb/templates/csi-smb-controller.yaml index 127a125a814..b800df63698 100755 --- a/charts/latest/csi-driver-smb/templates/csi-smb-controller.yaml +++ b/charts/latest/csi-driver-smb/templates/csi-smb-controller.yaml @@ -64,7 +64,7 @@ spec: - "--leader-election" - "--leader-election-namespace={{ .Release.Namespace }}" - "--extra-create-metadata=true" - - "--feature-gates=HonorPVReclaimPolicy=false" + - "--feature-gates=HonorPVReclaimPolicy=true" env: - name: ADDRESS value: /csi/csi.sock diff --git a/charts/latest/csi-driver-smb/templates/rbac-csi-smb.yaml b/charts/latest/csi-driver-smb/templates/rbac-csi-smb.yaml index 03561d1be18..eec11a4310b 100755 --- a/charts/latest/csi-driver-smb/templates/rbac-csi-smb.yaml +++ b/charts/latest/csi-driver-smb/templates/rbac-csi-smb.yaml @@ -25,7 +25,7 @@ metadata: rules: - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete"] + verbs: ["get", "list", "watch", "create", "patch", "delete"] - apiGroups: [""] resources: ["persistentvolumeclaims"] verbs: ["get", "list", "watch", "update"] diff --git a/charts/v1.15.0/csi-driver-smb-v1.15.0.tgz b/charts/v1.15.0/csi-driver-smb-v1.15.0.tgz index 17ecb24bc91..761bd135f94 100644 Binary files a/charts/v1.15.0/csi-driver-smb-v1.15.0.tgz and b/charts/v1.15.0/csi-driver-smb-v1.15.0.tgz differ diff --git a/charts/v1.15.0/csi-driver-smb/templates/csi-smb-controller.yaml b/charts/v1.15.0/csi-driver-smb/templates/csi-smb-controller.yaml index 127a125a814..b800df63698 100644 --- a/charts/v1.15.0/csi-driver-smb/templates/csi-smb-controller.yaml +++ b/charts/v1.15.0/csi-driver-smb/templates/csi-smb-controller.yaml @@ -64,7 +64,7 @@ spec: - "--leader-election" - "--leader-election-namespace={{ .Release.Namespace }}" - "--extra-create-metadata=true" - - "--feature-gates=HonorPVReclaimPolicy=false" + - "--feature-gates=HonorPVReclaimPolicy=true" env: - name: ADDRESS value: /csi/csi.sock diff --git a/charts/v1.15.0/csi-driver-smb/templates/rbac-csi-smb.yaml b/charts/v1.15.0/csi-driver-smb/templates/rbac-csi-smb.yaml index 03561d1be18..eec11a4310b 100644 --- a/charts/v1.15.0/csi-driver-smb/templates/rbac-csi-smb.yaml +++ b/charts/v1.15.0/csi-driver-smb/templates/rbac-csi-smb.yaml @@ -25,7 +25,7 @@ metadata: rules: - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete"] + verbs: ["get", "list", "watch", "create", "patch", "delete"] - apiGroups: [""] resources: ["persistentvolumeclaims"] verbs: ["get", "list", "watch", "update"] diff --git a/deploy/csi-smb-controller.yaml b/deploy/csi-smb-controller.yaml index b4c762d7782..50992b9f4e0 100644 --- a/deploy/csi-smb-controller.yaml +++ b/deploy/csi-smb-controller.yaml @@ -41,6 +41,7 @@ spec: - "--csi-address=$(ADDRESS)" - "--leader-election" - "--leader-election-namespace=kube-system" + - "--feature-gates=HonorPVReclaimPolicy=true" - "--extra-create-metadata=true" env: - name: ADDRESS diff --git a/deploy/rbac-csi-smb.yaml b/deploy/rbac-csi-smb.yaml index fc1f03ffa79..aa131b9e2d2 100644 --- a/deploy/rbac-csi-smb.yaml +++ b/deploy/rbac-csi-smb.yaml @@ -18,7 +18,7 @@ metadata: rules: - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete"] + verbs: ["get", "list", "watch", "create", "patch", "delete"] - apiGroups: [""] resources: ["persistentvolumeclaims"] verbs: ["get", "list", "watch", "update"] diff --git a/deploy/v1.14.0/rbac-csi-smb.yaml b/deploy/v1.14.0/rbac-csi-smb.yaml index fc1f03ffa79..aa131b9e2d2 100644 --- a/deploy/v1.14.0/rbac-csi-smb.yaml +++ b/deploy/v1.14.0/rbac-csi-smb.yaml @@ -18,7 +18,7 @@ metadata: rules: - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete"] + verbs: ["get", "list", "watch", "create", "patch", "delete"] - apiGroups: [""] resources: ["persistentvolumeclaims"] verbs: ["get", "list", "watch", "update"] diff --git a/deploy/v1.15.0/csi-smb-controller.yaml b/deploy/v1.15.0/csi-smb-controller.yaml index d1e6de01ec3..1179dd53780 100644 --- a/deploy/v1.15.0/csi-smb-controller.yaml +++ b/deploy/v1.15.0/csi-smb-controller.yaml @@ -41,6 +41,7 @@ spec: - "--csi-address=$(ADDRESS)" - "--leader-election" - "--leader-election-namespace=kube-system" + - "--feature-gates=HonorPVReclaimPolicy=true" - "--extra-create-metadata=true" env: - name: ADDRESS diff --git a/deploy/v1.15.0/rbac-csi-smb.yaml b/deploy/v1.15.0/rbac-csi-smb.yaml index fc1f03ffa79..aa131b9e2d2 100644 --- a/deploy/v1.15.0/rbac-csi-smb.yaml +++ b/deploy/v1.15.0/rbac-csi-smb.yaml @@ -18,7 +18,7 @@ metadata: rules: - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete"] + verbs: ["get", "list", "watch", "create", "patch", "delete"] - apiGroups: [""] resources: ["persistentvolumeclaims"] verbs: ["get", "list", "watch", "update"]