From d2e5e6f04140f853d668d3475f5d755b06ae46cc Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Thu, 13 Mar 2025 13:28:29 +0100 Subject: [PATCH] Fix kubeovn-webhook certs Signed-off-by: Andrei Kvapil --- packages/system/kubeovn-webhook/templates/deployment.yaml | 2 +- .../kubeovn-webhook/templates/mutatingwebhookconfiguration.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/system/kubeovn-webhook/templates/deployment.yaml b/packages/system/kubeovn-webhook/templates/deployment.yaml index 87273b6c..19467341 100644 --- a/packages/system/kubeovn-webhook/templates/deployment.yaml +++ b/packages/system/kubeovn-webhook/templates/deployment.yaml @@ -60,5 +60,5 @@ spec: volumes: - name: webhook-certs secret: - secretName: namespace-annotation-webhook-tls + secretName: {{ include "namespace-annotation-webhook.fullname" . }}-tls defaultMode: 0400 diff --git a/packages/system/kubeovn-webhook/templates/mutatingwebhookconfiguration.yaml b/packages/system/kubeovn-webhook/templates/mutatingwebhookconfiguration.yaml index 1d20e06a..fb9e8ca5 100644 --- a/packages/system/kubeovn-webhook/templates/mutatingwebhookconfiguration.yaml +++ b/packages/system/kubeovn-webhook/templates/mutatingwebhookconfiguration.yaml @@ -5,7 +5,7 @@ metadata: annotations: cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "namespace-annotation-webhook.fullname" . }}-cert labels: - app.kubernetes.io/name: namespace-annotation-webhook + app.kubernetes.io/name: {{ include "namespace-annotation-webhook.fullname" . }} webhooks: - name: kube-ovn-webhook.cozystack.io admissionReviewVersions: ["v1"]