From ce4f6ac42044697329989fc057872a8806063439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Wed, 11 Jan 2023 06:28:53 +0100 Subject: [PATCH] fix: helm selector (#5965) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché Signed-off-by: Charles-Edouard Brétéché Co-authored-by: shuting --- charts/kyverno/templates/_helpers.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/kyverno/templates/_helpers.tpl b/charts/kyverno/templates/_helpers.tpl index d3aed258a5..b3354e960c 100644 --- a/charts/kyverno/templates/_helpers.tpl +++ b/charts/kyverno/templates/_helpers.tpl @@ -93,7 +93,9 @@ app.kubernetes.io/version: "{{ .Chart.Version | replace "+" "_" }}" {{/* matchLabels */}} {{- define "kyverno.matchLabels" -}} +{{- if .Values.templating.enabled -}} app: kyverno +{{- end }} app.kubernetes.io/name: {{ template "kyverno.name" . }} {{- if not .Values.templating.enabled }} app.kubernetes.io/instance: {{ .Release.Name }}