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