Skip to content

Commit 7c486ae

Browse files
marcusrambergderekbit
authored andcommitted
fix: give clusterrole update on pvc
When provisioning fails, the controller tries to remove the selected node annotation to allow reprovisioning: https://github.com/rancher/local-path-provisioner/blob/58a077d589c04c95f1720a78b9618ebe8e2abea8/vendor/sigs.k8s.io/sig-storage-lib-external-provisioner/v11/controller/controller.go#L1388 But this fails with an RBAC error due to lack of permissions
1 parent 964c10d commit 7c486ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

deploy/chart/local-path-provisioner/templates/clusterrole.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ metadata:
77
{{ include "local-path-provisioner.labels" . | indent 4 }}
88
rules:
99
- apiGroups: [""]
10-
resources: ["nodes", "persistentvolumeclaims", "configmaps", "pods", "pods/log"]
10+
resources: ["nodes", "configmaps", "pods", "pods/log"]
1111
verbs: ["get", "list", "watch"]
12+
- apiGroups: [""]
13+
resources: ["persistentvolumeclaims"]
14+
verbs: ["get", "list", "watch", "update"]
1215
- apiGroups: [""]
1316
resources: ["persistentvolumes"]
1417
verbs: ["get", "list", "watch", "create", "patch", "update", "delete"]

0 commit comments

Comments
 (0)