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 }}