From 24365dcda68f0e1002600c0ab225f22a5c2caed9 Mon Sep 17 00:00:00 2001 From: CrisNevares Date: Thu, 9 Jun 2022 14:15:22 -0500 Subject: [PATCH] Minimize RBAC permissions Merge changes by serathius into helm chart's clusterrole.yaml --- charts/metrics-server/templates/clusterrole.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/charts/metrics-server/templates/clusterrole.yaml b/charts/metrics-server/templates/clusterrole.yaml index 5d25c1e81..4c43075a1 100644 --- a/charts/metrics-server/templates/clusterrole.yaml +++ b/charts/metrics-server/templates/clusterrole.yaml @@ -6,19 +6,15 @@ metadata: labels: {{- include "metrics-server.labels" . | nindent 4 }} rules: - - apiGroups: - - "" + - apiGroups: [""] resources: - nodes/metrics verbs: - get - - apiGroups: - - "" + - apiGroups: [""] resources: - pods - nodes - - namespaces - - configmaps verbs: - get - list