From 357705c02ade9e94b1031ac6e8e87038cdefedac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 17 Dec 2022 20:12:53 +0200 Subject: [PATCH] Make sure admission controller certificate exists --- templates/admission-control.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/admission-control.yml b/templates/admission-control.yml index d668fd5..e7ff23d 100644 --- a/templates/admission-control.yml +++ b/templates/admission-control.yml @@ -1,4 +1,3 @@ -{{ if .Values.admissionController }} --- apiVersion: cert-manager.io/v1 kind: Certificate @@ -10,6 +9,7 @@ spec: - admission-control.harbor-operator.svc issuerRef: name: harbor-operator +{{ if .Values.admissionController }} --- apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration