From f0d739f8cb293da2864b68a99c665c853f484259 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Wed, 27 Apr 2022 09:10:56 -0300 Subject: [PATCH] Add permission to list nodes do pvresizer account --- charts/pv-resizer/v0.1.0/templates/rbac.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/pv-resizer/v0.1.0/templates/rbac.yaml b/charts/pv-resizer/v0.1.0/templates/rbac.yaml index 866ffb5..28845cd 100644 --- a/charts/pv-resizer/v0.1.0/templates/rbac.yaml +++ b/charts/pv-resizer/v0.1.0/templates/rbac.yaml @@ -8,14 +8,16 @@ metadata: {{- include "pv-resizer.labels" . | nindent 4 }} rules: - apiGroups: [""] - resources: ["namespaces"] + resources: + - namespaces + - pods + - nodes verbs: ["get", "list"] - apiGroups: [""] resources: - deployments - statefulsets - persistentvolumeclaims - - pods verbs: ["get", "list", "patch", "update"] ---