add metrics port to network policy (#16438)

Allow connections to metrics port when both network policy and metrics are
enabled

Signed-off-by: Reinier Schoof <reinier@skoef.nl>
Signed-off-by: Rafael Ríos Saavedra <rrios@vmware.com>
Co-authored-by: Rafael Ríos Saavedra <rrios@vmware.com>
This commit is contained in:
Reinier Schoof
2023-05-11 09:54:36 +02:00
committed by GitHub
parent 10711912ed
commit 116b029b53
2 changed files with 5 additions and 1 deletions

View File

@@ -23,4 +23,4 @@ maintainers:
name: nats
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/nats
version: 7.8.0
version: 7.8.1

View File

@@ -27,4 +27,8 @@ spec:
- port: {{ .Values.service.ports.cluster }}
- ports:
- port: {{ .Values.service.ports.monitoring }}
{{- if .Values.metrics.enabled }}
- ports:
- port: {{ .Values.metrics.service.port }}
{{- end }}
{{- end }}