From 80194c3bdc1ea5324ec1a173f373e00417acef05 Mon Sep 17 00:00:00 2001 From: Nikola Grcevski Date: Thu, 11 Jul 2024 17:38:12 -0400 Subject: [PATCH] Make sure we have enough access for span metrics --- 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}}