Fixed cert choices
This commit is contained in:
@@ -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 "- " ""}}
|
||||
|
||||
Reference in New Issue
Block a user