Skip to content

Commit 6f27d54

Browse files
authored
Merge pull request #813 from andyzhangx/add-pv-patch-permission
fix: add pv patch permission with HonorPVReclaimPolicy enabled
2 parents e30c443 + 362a8a5 commit 6f27d54

File tree

11 files changed

+9
-7
lines changed

11 files changed

+9
-7
lines changed
-7 Bytes
Binary file not shown.

charts/latest/csi-driver-smb/templates/csi-smb-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ spec:
6464
- "--leader-election"
6565
- "--leader-election-namespace={{ .Release.Namespace }}"
6666
- "--extra-create-metadata=true"
67-
- "--feature-gates=HonorPVReclaimPolicy=false"
67+
- "--feature-gates=HonorPVReclaimPolicy=true"
6868
env:
6969
- name: ADDRESS
7070
value: /csi/csi.sock

charts/latest/csi-driver-smb/templates/rbac-csi-smb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ metadata:
2525
rules:
2626
- apiGroups: [""]
2727
resources: ["persistentvolumes"]
28-
verbs: ["get", "list", "watch", "create", "delete"]
28+
verbs: ["get", "list", "watch", "create", "patch", "delete"]
2929
- apiGroups: [""]
3030
resources: ["persistentvolumeclaims"]
3131
verbs: ["get", "list", "watch", "update"]
-6 Bytes
Binary file not shown.

charts/v1.15.0/csi-driver-smb/templates/csi-smb-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ spec:
6464
- "--leader-election"
6565
- "--leader-election-namespace={{ .Release.Namespace }}"
6666
- "--extra-create-metadata=true"
67-
- "--feature-gates=HonorPVReclaimPolicy=false"
67+
- "--feature-gates=HonorPVReclaimPolicy=true"
6868
env:
6969
- name: ADDRESS
7070
value: /csi/csi.sock

charts/v1.15.0/csi-driver-smb/templates/rbac-csi-smb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ metadata:
2525
rules:
2626
- apiGroups: [""]
2727
resources: ["persistentvolumes"]
28-
verbs: ["get", "list", "watch", "create", "delete"]
28+
verbs: ["get", "list", "watch", "create", "patch", "delete"]
2929
- apiGroups: [""]
3030
resources: ["persistentvolumeclaims"]
3131
verbs: ["get", "list", "watch", "update"]

deploy/csi-smb-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
- "--csi-address=$(ADDRESS)"
4242
- "--leader-election"
4343
- "--leader-election-namespace=kube-system"
44+
- "--feature-gates=HonorPVReclaimPolicy=true"
4445
- "--extra-create-metadata=true"
4546
env:
4647
- name: ADDRESS

deploy/rbac-csi-smb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata:
1818
rules:
1919
- apiGroups: [""]
2020
resources: ["persistentvolumes"]
21-
verbs: ["get", "list", "watch", "create", "delete"]
21+
verbs: ["get", "list", "watch", "create", "patch", "delete"]
2222
- apiGroups: [""]
2323
resources: ["persistentvolumeclaims"]
2424
verbs: ["get", "list", "watch", "update"]

deploy/v1.14.0/rbac-csi-smb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata:
1818
rules:
1919
- apiGroups: [""]
2020
resources: ["persistentvolumes"]
21-
verbs: ["get", "list", "watch", "create", "delete"]
21+
verbs: ["get", "list", "watch", "create", "patch", "delete"]
2222
- apiGroups: [""]
2323
resources: ["persistentvolumeclaims"]
2424
verbs: ["get", "list", "watch", "update"]

deploy/v1.15.0/csi-smb-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
- "--csi-address=$(ADDRESS)"
4242
- "--leader-election"
4343
- "--leader-election-namespace=kube-system"
44+
- "--feature-gates=HonorPVReclaimPolicy=true"
4445
- "--extra-create-metadata=true"
4546
env:
4647
- name: ADDRESS

0 commit comments

Comments
 (0)