Skip to content

Commit 3a9b8e8

Browse files
jplitzaJStickler
andauthored
fix(helm): Allow metrics networkpolicy only from namespace (#17555)
Signed-off-by: Jan-Philipp Litza <jplitza@users.noreply.github.com> Co-authored-by: J Stickler <julie.stickler@grafana.com>
1 parent a9808a1 commit 3a9b8e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

production/helm/loki/templates/networkpolicy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ spec:
9696
- ports:
9797
- port: http-metrics
9898
protocol: TCP
99-
{{- if .Values.networkPolicy.metrics.cidrs }}
99+
{{- if or .Values.networkPolicy.metrics.cidrs .Values.networkPolicy.metrics.namespaceSelector }}
100100
from:
101101
{{- range $cidr := .Values.networkPolicy.metrics.cidrs }}
102102
- ipBlock:

0 commit comments

Comments
 (0)