Fixed cert choices

This commit is contained in:
Lars
2023-09-12 16:17:14 +02:00
parent 0c992a6d46
commit cb2b3a2c3a
4 changed files with 39 additions and 8 deletions

View File

@@ -9,10 +9,15 @@ metadata:
{{- include "..labels" . | nindent 4 }}
spec:
ingressClassName: nginx
tls:
{{- if and .Values.site.certificate.certManager .Values.site.certificate.importCert }}
tls:
- secretName: {{ include "..fullname" . }}-cert-secret
hosts: {{ include "..domains" . | nindent 8 }}
hosts: {{ include "..domains" . | nindent 6 }}
{{- else if .Values.site.certificate.existingCert }}
tls:
- secretName: {{ .Values.site.certificate.existingCertName }}
hosts: {{ include "..domains" . | nindent 6 }}
{{- end }}
rules:
{{- range include "..domains" . | split "\n" }}
- host: {{ . | replace "- " ""}}