Skip to content

Commit

Permalink
feat: Allow additional SANS for web certificate
Browse files Browse the repository at this point in the history
This makes it possible to include extra variants of the service-name
that aren't captured by the {{ include "capsule.fullname" }} macro

Signed-off-by: Travis Holton <[email protected]>
  • Loading branch information
Travis Holton committed Dec 19, 2024
1 parent 20807ad commit bb127ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/capsule/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb127ea

Please sign in to comment.