From 1d2b480ffe5453b2018822e92665ddb92c6a1aa0 Mon Sep 17 00:00:00 2001 From: Nikola Grcevski <6207777+grcevski@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:26:20 -0400 Subject: [PATCH] Make sure we have enough access for span metrics (#1010) --- charts/beyla/templates/cluster-role.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/charts/beyla/templates/cluster-role.yaml b/charts/beyla/templates/cluster-role.yaml index 9f8db098a..65797e043 100644 --- a/charts/beyla/templates/cluster-role.yaml +++ b/charts/beyla/templates/cluster-role.yaml @@ -15,12 +15,8 @@ rules: resources: [ "replicasets" ] verbs: [ "list", "watch" ] - apiGroups: [ "" ] - {{- if or (eq .Values.preset "network") .Values.config.data.network }} resources: [ "pods", "services", "nodes" ] - {{- else }} - resources: [ "pods" ] - {{- end }} - verbs: [ "list", "watch" ] + verbs: [ "list", "watch", "get" ] {{- with .Values.rbac.extraClusterRoleRules }} {{- toYaml . | nindent 2 }} {{- end}}