summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/certManagerCertificate/templates/_certificate.tpl
diff options
context:
space:
mode:
authorPiotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com>2021-04-29 17:02:37 +0200
committerKrzysztof Opasiak <k.opasiak@samsung.com>2021-05-10 20:12:00 +0000
commit7062518d303da3de71d3f424bea5d2a87a5fc516 (patch)
tree47794fa090221cf87a9b9da7f1122f4e71b7f827 /kubernetes/common/certManagerCertificate/templates/_certificate.tpl
parent7782c3e8da81539a348a5fd18c44dcc6a1983dc3 (diff)
[DCAEGEN2] Add pem support in CMPv2 for dcaegen2-services
- Add mounting certificates in pem format. - Add comment description to certificates in dcae values Issue-ID: DCAEGEN2-2688 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I546292c33e25e36376b98d42e08a3c4ffa95de64
Diffstat (limited to 'kubernetes/common/certManagerCertificate/templates/_certificate.tpl')
-rw-r--r--kubernetes/common/certManagerCertificate/templates/_certificate.tpl16
1 files changed, 14 insertions, 2 deletions
diff --git a/kubernetes/common/certManagerCertificate/templates/_certificate.tpl b/kubernetes/common/certManagerCertificate/templates/_certificate.tpl
index 6fc667429e..2b9461e50e 100644
--- a/kubernetes/common/certManagerCertificate/templates/_certificate.tpl
+++ b/kubernetes/common/certManagerCertificate/templates/_certificate.tpl
@@ -219,8 +219,14 @@ spec:
sources:
- secret:
name: {{ $certificatesSecretName }}
- {{- if $certificate.keystore }}
items:
+ - key: tls.key
+ path: key.pem
+ - key: tls.crt
+ path: cert.pem
+ - key: ca.crt
+ path: cacert.pem
+ {{- if $certificate.keystore }}
{{- range $outputType := $certificate.keystore.outputType }}
- key: keystore.{{ $outputType }}
path: keystore.{{ $outputType }}
@@ -278,8 +284,14 @@ spec:
sources:
- secret:
name: {{ $certificatesSecretName }}
- {{- if $certificate.keystore }}
items:
+ - key: tls.key
+ path: key.pem
+ - key: tls.crt
+ path: cert.pem
+ - key: ca.crt
+ path: cacert.pem
+ {{- if $certificate.keystore }}
{{- range $outputType := $certificate.keystore.outputType }}
- key: keystore.{{ $outputType }}
path: keystore.{{ $outputType }}