Skip to content

Commit

Permalink
Merge pull request #725 from andyzhangx/add-pv-patch-permission
Browse files Browse the repository at this point in the history
fix: add pv patch permission with HonorPVReclaimPolicy enabled
  • Loading branch information
andyzhangx authored Jul 29, 2024
2 parents 470dd76 + da0a676 commit e4a53ae
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 8 deletions.
Binary file modified charts/latest/csi-driver-nfs-v0.0.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
- "--leader-election"
- "--leader-election-namespace={{ .Release.Namespace }}"
- "--extra-create-metadata=true"
- "--feature-gates=HonorPVReclaimPolicy=false"
- "--feature-gates=HonorPVReclaimPolicy=true"
- "--timeout=1200s"
env:
- name: ADDRESS
Expand Down
2 changes: 1 addition & 1 deletion charts/latest/csi-driver-nfs/templates/rbac-csi-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Binary file modified charts/v4.7.0/csi-driver-nfs-v4.7.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/v4.7.0/csi-driver-nfs/templates/rbac-csi-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Binary file modified charts/v4.8.0/csi-driver-nfs-v4.8.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
- "--leader-election"
- "--leader-election-namespace={{ .Release.Namespace }}"
- "--extra-create-metadata=true"
- "--feature-gates=HonorPVReclaimPolicy=false"
- "--feature-gates=HonorPVReclaimPolicy=true"
- "--timeout=1200s"
env:
- name: ADDRESS
Expand Down
2 changes: 1 addition & 1 deletion charts/v4.8.0/csi-driver-nfs/templates/rbac-csi-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 1 addition & 0 deletions deploy/csi-nfs-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
- "--leader-election"
- "--leader-election-namespace=kube-system"
- "--extra-create-metadata=true"
- "--feature-gates=HonorPVReclaimPolicy=true"
- "--timeout=1200s"
env:
- name: ADDRESS
Expand Down
2 changes: 1 addition & 1 deletion deploy/rbac-csi-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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"]
Expand Down
2 changes: 1 addition & 1 deletion deploy/v4.7.0/rbac-csi-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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"]
Expand Down
1 change: 1 addition & 0 deletions deploy/v4.8.0/csi-nfs-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
- "--leader-election"
- "--leader-election-namespace=kube-system"
- "--extra-create-metadata=true"
- "--feature-gates=HonorPVReclaimPolicy=true"
- "--timeout=1200s"
env:
- name: ADDRESS
Expand Down
2 changes: 1 addition & 1 deletion deploy/v4.8.0/rbac-csi-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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"]
Expand Down

0 comments on commit e4a53ae

Please sign in to comment.