diff --git a/deploy/chart/local-path-provisioner/templates/clusterrole.yaml b/deploy/chart/local-path-provisioner/templates/clusterrole.yaml index 9d7a9d673df7f16655260d61991f84cbf7ba3fdc..fd4f40b1f4be787ff4a0d8265f096b6fd1b9da55 100644 --- a/deploy/chart/local-path-provisioner/templates/clusterrole.yaml +++ b/deploy/chart/local-path-provisioner/templates/clusterrole.yaml @@ -14,7 +14,7 @@ rules: verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["*"] + verbs: ["get", "list", "watch", "create", "patch", "update", "delete"] - apiGroups: [""] resources: ["events"] verbs: ["create", "patch"] diff --git a/deploy/local-path-storage.yaml b/deploy/local-path-storage.yaml index 6e39a7313d33ceaf6443db91d335eedfc11fe1ed..3e10c3da89496280c62b2110ea58710a5648d609 100644 --- a/deploy/local-path-storage.yaml +++ b/deploy/local-path-storage.yaml @@ -35,7 +35,7 @@ rules: verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["*"] + verbs: ["get", "list", "watch", "create", "patch", "update", "delete"] - apiGroups: [""] resources: ["events"] verbs: ["create", "patch"] diff --git a/examples/quota/local-path-storage.yaml b/examples/quota/local-path-storage.yaml index 7383806bce2f0398810848ce266881ba3f3a9c89..136e93c5da8ce08780ed6d97b4e8ef0dd09fed70 100644 --- a/examples/quota/local-path-storage.yaml +++ b/examples/quota/local-path-storage.yaml @@ -35,7 +35,7 @@ rules: verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["*"] + verbs: ["get", "list", "watch", "create", "patch", "update", "delete"] - apiGroups: [""] resources: ["events"] verbs: ["create", "patch"]