From 3c2832cd180a419e20801a45466600690285cf1a Mon Sep 17 00:00:00 2001 From: Jacco Mook Date: Fri, 18 Oct 2024 15:14:59 +0200 Subject: [PATCH] Add webhookconfig checksum to deployment Signed-off-by: jacco --- charts/opa-kube-mgmt/templates/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/opa-kube-mgmt/templates/deployment.yaml b/charts/opa-kube-mgmt/templates/deployment.yaml index 3f2d9d55..cf43d357 100644 --- a/charts/opa-kube-mgmt/templates/deployment.yaml +++ b/charts/opa-kube-mgmt/templates/deployment.yaml @@ -19,6 +19,9 @@ spec: {{- if .Values.opa }} checksum/config: {{ tpl (toYaml .Values.opa) . | sha256sum }} {{- end }} + {{- if .Values.admissionController.enabled }} + checksum/webhookconfiguration: {{ include (print $.Template.BasePath "/webhookconfiguration.yaml" ) . | sha256sum }} + {{- end }} {{- if .Values.annotations }} {{ toYaml .Values.annotations | indent 8 }} {{- end }}