diff --git a/deploy/chart/local-path-provisioner/templates/clusterrole.yaml b/deploy/chart/local-path-provisioner/templates/clusterrole.yaml index 607f856cbda19d2483f16d492bf2f80e611cf99a..9d7a9d673df7f16655260d61991f84cbf7ba3fdc 100644 --- a/deploy/chart/local-path-provisioner/templates/clusterrole.yaml +++ b/deploy/chart/local-path-provisioner/templates/clusterrole.yaml @@ -9,15 +9,15 @@ rules: - apiGroups: [""] resources: ["nodes", "persistentvolumeclaims", "configmaps"] verbs: ["get", "list", "watch"] - - apiGroups: [ "" ] - resources: [ "pods" ] - verbs: [ "get", "list", "watch" ] + - apiGroups: [""] + resources: ["pods"] + verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["persistentvolumes"] verbs: ["*"] - - apiGroups: [ "" ] - resources: [ "events" ] - verbs: [ "create", "patch" ] + - apiGroups: [""] + resources: ["events"] + verbs: ["create", "patch"] - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] verbs: ["get", "list", "watch"] diff --git a/deploy/chart/local-path-provisioner/templates/role.yaml b/deploy/chart/local-path-provisioner/templates/role.yaml index 9562816b1d7d819fec275d38756cac575e9485f5..ec6c2e5127d82c0281608e8f5552a4c82fae4a05 100644 --- a/deploy/chart/local-path-provisioner/templates/role.yaml +++ b/deploy/chart/local-path-provisioner/templates/role.yaml @@ -7,7 +7,7 @@ metadata: labels: {{ include "local-path-provisioner.labels" . | indent 4 }} rules: - - apiGroups: [ "" ] - resources: [ "pods" ] + - apiGroups: [""] + resources: ["pods"] verbs: ["get", "list", "watch", "create", "patch", "update", "delete"] {{- end -}} diff --git a/deploy/local-path-storage.yaml b/deploy/local-path-storage.yaml index ee3f35b174efc5c52a4f065bc45d233fb6a9f20a..6e39a7313d33ceaf6443db91d335eedfc11fe1ed 100644 --- a/deploy/local-path-storage.yaml +++ b/deploy/local-path-storage.yaml @@ -17,8 +17,8 @@ metadata: name: local-path-provisioner-role namespace: local-path-storage rules: - - apiGroups: [ "" ] - resources: [ "pods" ] + - apiGroups: [""] + resources: ["pods"] verbs: ["get", "list", "watch", "create", "patch", "update", "delete"] --- @@ -27,21 +27,21 @@ kind: ClusterRole metadata: name: local-path-provisioner-role rules: - - apiGroups: [ "" ] - resources: [ "nodes", "persistentvolumeclaims", "configmaps" ] - verbs: [ "get", "list", "watch" ] - - apiGroups: [ "" ] - resources: [ "pods" ] - verbs: [ "get", "list", "watch" ] - - apiGroups: [ "" ] - resources: [ "persistentvolumes" ] - verbs: [ "*" ] - - apiGroups: [ "" ] - resources: [ "events" ] - verbs: [ "create", "patch" ] - - apiGroups: [ "storage.k8s.io" ] - resources: [ "storageclasses" ] - verbs: [ "get", "list", "watch" ] + - apiGroups: [""] + resources: ["nodes", "persistentvolumeclaims", "configmaps"] + verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["pods"] + verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["persistentvolumes"] + verbs: ["*"] + - apiGroups: [""] + resources: ["events"] + verbs: ["create", "patch"] + - apiGroups: ["storage.k8s.io"] + resources: ["storageclasses"] + verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1 diff --git a/examples/quota/local-path-storage.yaml b/examples/quota/local-path-storage.yaml index 39d09fea121632bfe26a7a8c7c00b4e7e896841a..7383806bce2f0398810848ce266881ba3f3a9c89 100644 --- a/examples/quota/local-path-storage.yaml +++ b/examples/quota/local-path-storage.yaml @@ -17,8 +17,8 @@ metadata: name: local-path-provisioner-role namespace: local-path-storage rules: - - apiGroups: [ "" ] - resources: [ "pods" ] + - apiGroups: [""] + resources: ["pods"] verbs: ["get", "list", "watch", "create", "patch", "update", "delete"] --- @@ -27,21 +27,21 @@ kind: ClusterRole metadata: name: local-path-provisioner-role rules: - - apiGroups: [ "" ] - resources: [ "nodes", "persistentvolumeclaims", "configmaps" ] - verbs: [ "get", "list", "watch" ] - - apiGroups: [ "" ] - resources: [ "pods" ] - verbs: [ "get", "list", "watch" ] - - apiGroups: [ "" ] - resources: [ "persistentvolumes" ] - verbs: [ "*" ] - - apiGroups: [ "" ] - resources: [ "events" ] - verbs: [ "create", "patch" ] - - apiGroups: [ "storage.k8s.io" ] - resources: [ "storageclasses" ] - verbs: [ "get", "list", "watch" ] + - apiGroups: [""] + resources: ["nodes", "persistentvolumeclaims", "configmaps"] + verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["pods"] + verbs: ["get", "list", "watch"] + - apiGroups: [""] + resources: ["persistentvolumes"] + verbs: ["*"] + - apiGroups: [""] + resources: ["events"] + verbs: ["create", "patch"] + - apiGroups: ["storage.k8s.io"] + resources: ["storageclasses"] + verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1