-
-
Save Depado/05f188225e74753c29a727d4c1ff941a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- if and .Values.ingress.enabled .Values.tls.enabled -}} | |
apiVersion: certmanager.k8s.io/v1alpha1 | |
kind: Certificate | |
metadata: | |
name: {{ template "dummy.fullname" . }} | |
labels: | |
app: {{ template "dummy.name" . }} | |
chart: {{ template "dummy.chart" . }} | |
release: {{ .Release.Name }} | |
heritage: {{ .Release.Service }} | |
spec: | |
secretName: {{ template "dummy.fullname" . }}-tls | |
issuerRef: | |
name: {{ required "A valid .Values.tls.issuer.name entry required!" .Values.tls.issuerName }} | |
kind: ClusterIssuer | |
commonName: {{ required "A valid .Values.tls.commonName entry is required!" .Values.tls.commonName }} | |
dnsNames: | |
{{- range .Values.tls.dnsNames }} | |
- {{ . }} | |
{{- end }} | |
acme: | |
config: | |
- http01: | |
ingress: {{ template "dummy.fullname" . }} | |
domains: | |
{{- range .Values.tls.domains }} | |
- {{ . }} | |
{{- end }} | |
{{- end -}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment