2019-11-05 00:17:25 +00:00
|
|
|
{{- if .Values.server.certificate.enabled -}}
|
2023-08-27 19:07:17 +00:00
|
|
|
apiVersion: cert-manager.io/v1
|
2019-09-19 23:02:21 +00:00
|
|
|
kind: Certificate
|
|
|
|
metadata:
|
2023-07-11 13:01:02 +00:00
|
|
|
{{- with (mergeOverwrite (deepCopy .Values.global.certificateAnnotations) .Values.server.certificate.annotations) }}
|
|
|
|
annotations:
|
|
|
|
{{- range $key, $value := . }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-10-30 22:03:30 +00:00
|
|
|
name: {{ include "argo-cd.server.fullname" . }}
|
2024-05-14 15:17:31 +00:00
|
|
|
namespace: {{ include "argo-cd.namespace" . }}
|
2019-09-19 23:02:21 +00:00
|
|
|
labels:
|
2021-03-22 20:15:37 +00:00
|
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
2019-09-19 23:02:21 +00:00
|
|
|
spec:
|
2024-09-02 15:33:07 +00:00
|
|
|
{{- with .Values.server.certificate.secretTemplateAnnotations }}
|
2024-06-19 14:04:02 +00:00
|
|
|
secretTemplate:
|
|
|
|
annotations:
|
|
|
|
{{- range $key, $value := . }}
|
|
|
|
{{ $key }}: {{ $value | quote }}
|
|
|
|
{{- end }}
|
2024-09-02 15:33:07 +00:00
|
|
|
{{- end }}
|
2024-06-20 10:25:27 +00:00
|
|
|
secretName: argocd-server-tls
|
2024-02-16 14:44:51 +00:00
|
|
|
commonName: {{ .Values.server.certificate.domain | default .Values.global.domain }}
|
2019-09-19 23:02:21 +00:00
|
|
|
dnsNames:
|
2024-02-16 14:44:51 +00:00
|
|
|
- {{ .Values.server.certificate.domain | default .Values.global.domain }}
|
2022-04-03 09:13:56 +00:00
|
|
|
{{- range .Values.server.certificate.additionalHosts }}
|
2019-09-19 23:02:21 +00:00
|
|
|
- {{ . | quote }}
|
2022-04-03 09:13:56 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.server.certificate.duration }}
|
|
|
|
duration: {{ . | quote }}
|
2019-09-19 23:02:21 +00:00
|
|
|
{{- end }}
|
2022-10-30 22:03:30 +00:00
|
|
|
{{- with .Values.server.certificate.renewBefore }}
|
|
|
|
renewBefore: {{ . | quote }}
|
|
|
|
{{- end }}
|
2019-09-19 23:02:21 +00:00
|
|
|
issuerRef:
|
2022-05-20 18:10:35 +00:00
|
|
|
{{- with .Values.server.certificate.issuer.group }}
|
|
|
|
group: {{ . | quote }}
|
|
|
|
{{- end }}
|
2019-12-05 05:59:15 +00:00
|
|
|
kind: {{ .Values.server.certificate.issuer.kind | quote }}
|
|
|
|
name: {{ .Values.server.certificate.issuer.name | quote }}
|
2022-09-19 21:36:26 +00:00
|
|
|
{{- with .Values.server.certificate.privateKey }}
|
|
|
|
privateKey:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2023-07-02 08:07:17 +00:00
|
|
|
{{- with .Values.server.certificate.usages }}
|
|
|
|
usages:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2019-09-19 23:02:21 +00:00
|
|
|
{{- end }}
|