mirror of https://code.onedev.io/onedev/server
23 lines
649 B
YAML
23 lines
649 B
YAML
{{- if .Values.ingress.tls.acme.enabled -}}
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Issuer
|
|
metadata:
|
|
name: {{ include "ods.fullname" . }}
|
|
spec:
|
|
acme:
|
|
{{- if eq $.Values.ingress.tls.acme.type "letsencrypt" }}
|
|
{{- if .Values.ingress.tls.acme.production }}
|
|
server: https://acme-v02.api.letsencrypt.org/directory
|
|
{{- else }}
|
|
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
|
{{- end }}
|
|
{{- end }}
|
|
email: {{ .Values.ingress.tls.acme.email }}
|
|
privateKeySecretRef:
|
|
name: {{ include "ods.fullname" . }}-privkey
|
|
solvers:
|
|
- http01:
|
|
ingress:
|
|
class: {{ .Values.ingress.className }}
|
|
{{- end }}
|