16 lines
497 B
YAML
16 lines
497 B
YAML
{{- if and .Values.ingress.enabled .Values.certificate.enabled }}
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: {{ include "gitea-reports.fullname" . }}-tls
|
|
labels:
|
|
{{- include "gitea-reports.componentLabels" . | nindent 4 }}
|
|
spec:
|
|
secretName: {{ include "gitea-reports.fullname" . }}-tls
|
|
dnsNames:
|
|
- {{ .Values.ingress.host | quote }}
|
|
issuerRef:
|
|
name: {{ .Values.certificate.issuerRef.name }}
|
|
kind: {{ .Values.certificate.issuerRef.kind }}
|
|
{{- end }}
|