Skip to content

Commit

Permalink
Fix network configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Macias <mario.macias@grafana.com>
  • Loading branch information
mariomac committed Apr 19, 2024
1 parent 0d5c736 commit 118f1bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/beyla/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rules:
resources: [ "replicasets" ]
verbs: [ "list", "watch" ]
- apiGroups: [ "" ]
{{- if eq .Values.preset "network" }}
{{- if or (eq .Values.preset "network") .Values.config.data.network }}
resources: [ "pods", "services", "nodes" ]
{{- else }}
resources: [ "pods" ]
Expand Down
2 changes: 1 addition & 1 deletion charts/beyla/templates/daemon-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
{{- if eq .Values.preset "application" }}
hostPID: true
{{- end }}
{{- if eq .Values.preset "network" }}
{{- if or (eq .Values.preset "network") .Values.config.data.network }}
hostNetwork: true
{{- end }}
containers:
Expand Down

0 comments on commit 118f1bb

Please sign in to comment.