From 443d56fd4de7e0f6a7451d0fca3351c011aa778c Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Thu, 24 Jun 2021 08:11:36 +0100 Subject: [PATCH] fix: set deployment name env var Signed-off-by: Marcus Noble --- charts/kyverno/templates/deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/kyverno/templates/deployment.yaml b/charts/kyverno/templates/deployment.yaml index 6d1723d893..455e60acde 100644 --- a/charts/kyverno/templates/deployment.yaml +++ b/charts/kyverno/templates/deployment.yaml @@ -93,7 +93,7 @@ spec: protocol: TCP - containerPort: 8000 name: metrics-port - protocol: TCP + protocol: TCP env: - name: INIT_CONFIG value: {{ template "kyverno.configMapName" . }} @@ -103,6 +103,8 @@ spec: fieldPath: metadata.namespace - name: KYVERNO_SVC value: {{ template "kyverno.serviceName" . }} + - name: KYVERNO_DEPLOYMENT + value: {{ template "kyverno.fullname" . }} {{- with .Values.livenessProbe }} livenessProbe: {{ tpl (toYaml .) $ | nindent 12 }} {{- end }}