From 8603f89e2306079babe570f2282d885e8897d84a Mon Sep 17 00:00:00 2001 From: Travis Holton Date: Thu, 19 Dec 2024 19:23:30 +1300 Subject: [PATCH] feat: Allow additional SANS for web certificate This makes it possible to include extra variants of the service-name that aren't captured by the {{ include "capsule.fullname" }} macro --- charts/capsule/templates/certificate.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/capsule/templates/certificate.yaml b/charts/capsule/templates/certificate.yaml index 29d6ff4d..9ad96f05 100644 --- a/charts/capsule/templates/certificate.yaml +++ b/charts/capsule/templates/certificate.yaml @@ -27,6 +27,9 @@ spec: dnsNames: - {{ include "capsule.fullname" . }}-webhook-service.{{ .Release.Namespace }}.svc - {{ include "capsule.fullname" . }}-webhook-service.{{ .Release.Namespace }}.svc.cluster.local + {{- range .Values.certManager.additionalSANS }} + - {{ toYaml . }} + {{- end }} issuerRef: kind: Issuer name: {{ include "capsule.fullname" . }}-webhook-selfsigned