From 194c99564e0f813105d9c302ceedb98a803cff0d Mon Sep 17 00:00:00 2001
From: Retna <76952128+Retna-Gjensidige@users.noreply.github.com>
Date: Fri, 18 Jun 2021 09:01:28 +0200
Subject: [PATCH] fix: added envVars to containers

Signed-off-by: Retna Ramachandran <retna.ramachandran@gjensidige.no>
---
 charts/kyverno/templates/deployment.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/charts/kyverno/templates/deployment.yaml b/charts/kyverno/templates/deployment.yaml
index 5afcfa1c69..a3fcdb36ac 100644
--- a/charts/kyverno/templates/deployment.yaml
+++ b/charts/kyverno/templates/deployment.yaml
@@ -104,6 +104,10 @@ spec:
                 fieldPath: metadata.namespace
           - name: KYVERNO_SVC
             value: {{ template "kyverno.serviceName" . }}
+          {{- with .Values.envVars }}
+          env:
+            {{- toYaml . | nindent 14 }}
+          {{- end }}
         {{- with .Values.livenessProbe }}
           livenessProbe: {{ tpl (toYaml .) $ | nindent 12 }}
         {{- end }}