Skip to content

Commit 014ce71

Browse files
committed
fix(helm): ignore certificateIssuerRef when creating certificate issuer
1 parent e0f4fca commit 014ce71

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

helm/kube-image-keeper/templates/webhook-certificate.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ spec:
88
- {{ include "kube-image-keeper.fullname" . }}-webhook.{{ .Release.Namespace }}.svc.cluster.local
99
secretName: {{ include "kube-image-keeper.fullname" . }}-webhook-server-cert
1010
issuerRef:
11+
{{- if .Values.controllers.webhook.createCertificateIssuer }}
12+
kind: Issuer
13+
name: {{ include "kube-image-keeper.fullname" . }}-selfsigned-issuer
14+
{{- else -}}
1115
{{- toYaml .Values.controllers.webhook.certificateIssuerRef | nindent 4 }}
16+
{{- end }}
1217
---
1318
{{- if .Values.controllers.webhook.createCertificateIssuer }}
1419
apiVersion: cert-manager.io/v1

0 commit comments

Comments
 (0)