Some checks are pending
Upload Helm Chart / Explore-Gitea-Actions (push) Waiting to run
27 lines
966 B
YAML
27 lines
966 B
YAML
{{- if and .Values.site.certificate .Values.site.certificate.certManager }}
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: {{ include "..fullname" . }}-cert
|
|
labels:
|
|
{{- include "..labels" . | nindent 8 }}
|
|
spec:
|
|
issuerRef:
|
|
name: {{ .Values.site.certificate.issuerRef }}
|
|
kind: {{ .Values.site.certificate.issuerKind }}
|
|
secretName: {{ include "..fullname" . }}-cert-secret
|
|
commonName: {{ .Values.site.domain }}
|
|
dnsNames: {{ include "..domains" . | nindent 8 }}
|
|
{{- else if and .Values.site.certificate .Values.site.certificate.custom .Values.site.certificate.custom.enabled }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "..fullname" . }}-cert-secret
|
|
labels:
|
|
{{- include "..labels" . | nindent 8 }}
|
|
type: kubernetes.io/tls
|
|
data:
|
|
tls.crt: {{ .Values.site.certificate.custom.cert | b64enc }}
|
|
tls.key: {{ .Values.site.certificate.custom.key | b64enc }}
|
|
{{- else }}
|
|
{{- end }} |