2021-07-01 16:42:24 +02:00
|
|
|
{{- range $cert := (index .Values "istio-ingress" "certificates") }}
|
|
|
|
{{- if $cert.dnsNames }}
|
2020-11-21 04:24:57 -08:00
|
|
|
apiVersion: cert-manager.io/v1
|
2020-07-21 18:30:21 +01:00
|
|
|
kind: Certificate
|
|
|
|
metadata:
|
2021-07-01 16:42:24 +02:00
|
|
|
name: {{ $cert.name }}
|
|
|
|
namespace: {{ $.Release.Namespace }}
|
2020-08-06 18:43:59 +01:00
|
|
|
labels:
|
2021-07-01 16:42:24 +02:00
|
|
|
{{ include "kubezero-lib.labels" $ | indent 4 }}
|
2020-07-21 18:30:21 +01:00
|
|
|
spec:
|
2021-07-01 16:42:24 +02:00
|
|
|
secretName: {{ $cert.name }}
|
2020-07-21 18:30:21 +01:00
|
|
|
issuerRef:
|
2021-07-01 16:42:24 +02:00
|
|
|
name: {{ default "letsencrypt-dns-prod" $cert.issuer }}
|
2020-07-21 18:30:21 +01:00
|
|
|
kind: ClusterIssuer
|
|
|
|
dnsNames:
|
2021-07-01 16:42:24 +02:00
|
|
|
{{ toYaml $cert.dnsNames | indent 4 }}
|
|
|
|
---
|
|
|
|
{{- end }}
|
2020-07-22 20:25:18 +01:00
|
|
|
{{- end }}
|
2020-11-28 15:01:20 -08:00
|
|
|
|
2021-07-01 16:42:24 +02:00
|
|
|
{{- range $cert := (index .Values "istio-private-ingress" "certificates") }}
|
|
|
|
{{- if $cert.dnsNames }}
|
2020-11-28 15:01:20 -08:00
|
|
|
apiVersion: cert-manager.io/v1
|
|
|
|
kind: Certificate
|
|
|
|
metadata:
|
2021-07-01 16:42:24 +02:00
|
|
|
name: {{ $cert.name }}
|
|
|
|
namespace: {{ $.Release.Namespace }}
|
2020-11-28 15:01:20 -08:00
|
|
|
labels:
|
2021-07-01 16:42:24 +02:00
|
|
|
{{ include "kubezero-lib.labels" $ | indent 4 }}
|
2020-11-28 15:01:20 -08:00
|
|
|
spec:
|
|
|
|
secretName: private-ingress-cert
|
|
|
|
issuerRef:
|
2021-07-01 16:42:24 +02:00
|
|
|
name: {{ default "letsencrypt-dns-prod" $cert.issuer }}
|
2020-11-28 15:01:20 -08:00
|
|
|
kind: ClusterIssuer
|
|
|
|
dnsNames:
|
2021-07-01 16:42:24 +02:00
|
|
|
{{ toYaml $cert.dnsNames | indent 4 }}
|
|
|
|
---
|
|
|
|
{{- end }}
|
2020-11-28 15:01:20 -08:00
|
|
|
{{- end }}
|