add secret template annotation to argocd server certificate

Signed-off-by: Ims, Julie <juliebergeims@gmail.com>
This commit is contained in:
Ims, Julie 2024-06-19 10:08:24 +02:00
parent 3c127abe7b
commit 8c9573a082
2 changed files with 9 additions and 0 deletions

View file

@ -13,6 +13,13 @@ metadata:
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
spec:
secretTemplate:
{{- with .Values.server.certificate.secretTemplateAnnotations }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
secretName: {{ .Values.server.certificate.secretName }}
commonName: {{ .Values.server.certificate.domain | default .Values.global.domain }}
dnsNames:

View file

@ -2029,6 +2029,8 @@ server:
# -- Usages for the certificate
### Ref: https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.KeyUsage
usages: []
# Secret allows the certificate to be composed from data residing in existing Kubernetes Resources, including other Secrets.
secretTemplateAnnotations: {}
# TLS certificate configuration via Secret
## Ref: https://argo-cd.readthedocs.io/en/stable/operator-manual/tls/#tls-certificates-used-by-argocd-server