diff options
author | Grzegorz-Lis <grzegorz.lis@nokia.com> | 2021-08-04 06:59:03 +0000 |
---|---|---|
committer | Grzegorz Lis <grzegorz.lis@nokia.com> | 2021-08-05 13:08:15 +0000 |
commit | f739bd6b7e48edad36966a00894dc08de0c4de21 (patch) | |
tree | f867439285c9f3261c46476a5c158984713d6c6a /helm/ves-client/templates/certificate.yaml | |
parent | 5c43a0c2c3412b416c2ae560f34059063e647012 (diff) |
Improve VES Client helm charts in order to use certificates from AAF or CMPv2istanbul
Issue-ID: INT-1954
Signed-off-by: Grzegorz Lis <grzegorz.lis@nokia.com>
Change-Id: I449350101e8af43aabefccded31d6c6c5e717c2c
Diffstat (limited to 'helm/ves-client/templates/certificate.yaml')
-rw-r--r-- | helm/ves-client/templates/certificate.yaml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/helm/ves-client/templates/certificate.yaml b/helm/ves-client/templates/certificate.yaml new file mode 100644 index 0000000..4dc0110 --- /dev/null +++ b/helm/ves-client/templates/certificate.yaml @@ -0,0 +1,41 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +{{- with .Values.certificates }} +metadata: + name: {{ .name }} + namespace: {{ .namespace }} +spec: + secretName: {{ .secretName }} + commonName: {{ .commonName }} + renewBefore: {{ .renewBefore }} + {{- if .duration }} + duration: {{ .duration }} + {{- end }} + subject: + organizations: + - {{ .subject.organization }} + countries: + - {{ .subject.country }} + localities: + - {{ .subject.locality }} + provinces: + - {{ .subject.province }} + organizationalUnits: + - {{ .subject.organizationalUnit }} + issuerRef: + group: {{ .issuerRef.group }} + kind: {{ .issuerRef.kind }} + name: {{ .issuerRef.name }} + {{- if .dnsNames }} + dnsNames: + {{- range $.Values.certificates.dnsNames }} + - {{ . }} + {{- end }} + {{- end }} + {{- if .ipAddresses }} + ipAddresses: + - {{ .ipAddresses }} + {{- end }} + keystores: + {{- toYaml .keystores | nindent 4 }} +{{- end }} |