From bc3755d0b133086f7eefe78422e42a5cf2a298dc Mon Sep 17 00:00:00 2001 From: treydock Date: Thu, 17 Jun 2021 18:20:31 -0400 Subject: [PATCH] Fix Helm chart metrics service to allow NodePort (#2035) Signed-off-by: Trey Dockendorf --- charts/kyverno/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/kyverno/templates/service.yaml b/charts/kyverno/templates/service.yaml index 515e72a474..ca167c05e0 100644 --- a/charts/kyverno/templates/service.yaml +++ b/charts/kyverno/templates/service.yaml @@ -38,7 +38,7 @@ spec: protocol: TCP name: metrics-port {{- if and (eq .Values.metricsService.type "NodePort") (not (empty .Values.metricsService.nodePort)) }} - nodePort: {{ .Values.metricsService.metricsNodePort }} + nodePort: {{ .Values.metricsService.nodePort }} {{- end }} selector: {{ include "kyverno.matchLabels" . | nindent 4 }} app: kyverno