diff --git a/bitnami/grafana/templates/networkpolicy.yaml b/bitnami/grafana/templates/networkpolicy.yaml index d78ce612c3888b..b7f7dc2672d28c 100644 --- a/bitnami/grafana/templates/networkpolicy.yaml +++ b/bitnami/grafana/templates/networkpolicy.yaml @@ -51,7 +51,7 @@ spec: matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 14 }} {{- if .Values.networkPolicy.addExternalClientAccess }} - podSelector: - matchLabels: + matchLabels: {{ template "common.names.fullname" . }}-client: "true" {{- end }} {{- if .Values.networkPolicy.ingressPodMatchLabels }}