From 4f3a780cc4a93fd7a4d41bfa17fe5ea48cf336c4 Mon Sep 17 00:00:00 2001 From: vyankatesh Date: Thu, 17 Jun 2021 20:49:28 +0530 Subject: [PATCH 1/3] fix issue --- pkg/config/config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 056dfdb396..7b4cce0174 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -58,7 +58,8 @@ var ( KyvernoNamespace = getKyvernoNameSpace() // KyvernoDeploymentName is the Kyverno deployment name - KyvernoDeploymentName = getKyvernoDeploymentName() + //KyvernoDeploymentName = getKyvernoDeploymentName() + KyvernoDeploymentName = "kyverno" //KyvernoServiceName is the Kyverno service name KyvernoServiceName = getKyvernoServiceName() @@ -114,7 +115,7 @@ func getKyvernoServiceName() string { return webhookServiceName } -// getKyvernoDeploymentName - setting default KyvernoServiceName +// getKyvernoDeploymentName - setting default KyvernoDeploymentName func getKyvernoDeploymentName() string { name := os.Getenv("KYVERNO_DEPLOYMENT") if name == "" { From 11a05496de69eb02f085afe250662057d610260d Mon Sep 17 00:00:00 2001 From: vyankatesh Date: Thu, 24 Jun 2021 13:03:15 +0530 Subject: [PATCH 2/3] fix helm deployment name --- charts/kyverno/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/kyverno/templates/deployment.yaml b/charts/kyverno/templates/deployment.yaml index 5afcfa1c69..e0487964a6 100644 --- a/charts/kyverno/templates/deployment.yaml +++ b/charts/kyverno/templates/deployment.yaml @@ -1,7 +1,7 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: {{ template "kyverno.fullname" . }} + name: kyverno labels: {{ include "kyverno.labels" . | nindent 4 }} app: kyverno namespace: {{ template "kyverno.namespace" . }} From 235038e712b2cf2bcaa8faadba3e19ef29430ff9 Mon Sep 17 00:00:00 2001 From: vyankatesh Date: Thu, 24 Jun 2021 13:07:51 +0530 Subject: [PATCH 3/3] fix deployment issue --- charts/kyverno/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/kyverno/templates/deployment.yaml b/charts/kyverno/templates/deployment.yaml index e0487964a6..f25d333086 100644 --- a/charts/kyverno/templates/deployment.yaml +++ b/charts/kyverno/templates/deployment.yaml @@ -104,6 +104,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 }}