diff --git a/deploy/chart/local-path-provisioner/templates/clusterrole.yaml b/deploy/chart/local-path-provisioner/templates/clusterrole.yaml index fd4f40b1f4be787ff4a0d8265f096b6fd1b9da55..b78160857a1b9c8dc1ac75feb8fe1467925efe68 100644 --- a/deploy/chart/local-path-provisioner/templates/clusterrole.yaml +++ b/deploy/chart/local-path-provisioner/templates/clusterrole.yaml @@ -7,10 +7,7 @@ metadata: {{ include "local-path-provisioner.labels" . | indent 4 }} rules: - apiGroups: [""] - resources: ["nodes", "persistentvolumeclaims", "configmaps"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["pods"] + resources: ["nodes", "persistentvolumeclaims", "configmaps", "pods"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["persistentvolumes"] diff --git a/deploy/local-path-storage.yaml b/deploy/local-path-storage.yaml index 3e10c3da89496280c62b2110ea58710a5648d609..2b6b68eedde902de913b368724cf557847d96375 100644 --- a/deploy/local-path-storage.yaml +++ b/deploy/local-path-storage.yaml @@ -28,10 +28,7 @@ metadata: name: local-path-provisioner-role rules: - apiGroups: [""] - resources: ["nodes", "persistentvolumeclaims", "configmaps"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["pods"] + resources: ["nodes", "persistentvolumeclaims", "configmaps", "pods"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["persistentvolumes"] diff --git a/examples/quota/local-path-storage.yaml b/examples/quota/local-path-storage.yaml index 136e93c5da8ce08780ed6d97b4e8ef0dd09fed70..30e3c61b805f95c2c0095ebdbc056466fda3e13e 100644 --- a/examples/quota/local-path-storage.yaml +++ b/examples/quota/local-path-storage.yaml @@ -28,10 +28,7 @@ metadata: name: local-path-provisioner-role rules: - apiGroups: [""] - resources: ["nodes", "persistentvolumeclaims", "configmaps"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["pods"] + resources: ["nodes", "persistentvolumeclaims", "configmaps", "pods"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["persistentvolumes"]