fix(certificate) Add usages to ArgoCD server certificate

Signed-off-by: Elad Shmitanka <elad@myheritage.com>
This commit is contained in:
Elad Shmitanka 2023-07-01 18:26:48 +03:00
parent 7c3553de9d
commit 6673bd0384
2 changed files with 9 additions and 0 deletions

View file

@ -30,4 +30,10 @@ spec:
privateKey: privateKey:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- if .Values.server.certificate.usages }}
usages:
{{- range .Values.server.certificate.usages }}
- {{ . | quote }}
{{- end }}
{{- end }}
{{- end }} {{- end }}

View file

@ -1743,6 +1743,9 @@ server:
algorithm: RSA algorithm: RSA
# -- Key bit size of the private key. If algorithm is set to `Ed25519`, size is ignored. # -- Key bit size of the private key. If algorithm is set to `Ed25519`, size is ignored.
size: 2048 size: 2048
# -- Usages for the certificate
### Ref: https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.KeyUsage
usages: []
# TLS certificate configuration via Secret # TLS certificate configuration via Secret
## Ref: https://argo-cd.readthedocs.io/en/stable/operator-manual/tls/#tls-certificates-used-by-argocd-server ## Ref: https://argo-cd.readthedocs.io/en/stable/operator-manual/tls/#tls-certificates-used-by-argocd-server