diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-05-06 23:27:18 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-05-06 23:36:50 +0200 |
commit | 95a5f84069703c583e49028b37003c73c03cc07d (patch) | |
tree | b72588a67f11873c3db9314260d4eb8da4561f12 /kubernetes/common/certInitializer/templates/configmap.yaml | |
parent | 020cdb94ca5c6ca3fb4690b1118c08779f3b4d95 (diff) |
[COMMON] Override truststore in aaf_agent image
aaf_agent image currently contains hardcoded truststores in order to
be able to connect to certman to retrieve certificate for given
component.
The goal is to remove hardcoded truststore from aaf_agent immage but
first we need to be sure that all its users are able to provide the
truststore to the pod as a configmap.
Issue-ID: AAF-1134
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: Ibe9de6ad7264c05aeca2af858918fc2b4d3a772b
Diffstat (limited to 'kubernetes/common/certInitializer/templates/configmap.yaml')
-rw-r--r-- | kubernetes/common/certInitializer/templates/configmap.yaml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kubernetes/common/certInitializer/templates/configmap.yaml b/kubernetes/common/certInitializer/templates/configmap.yaml index 640dafd67e..a89a33152b 100644 --- a/kubernetes/common/certInitializer/templates/configmap.yaml +++ b/kubernetes/common/certInitializer/templates/configmap.yaml @@ -22,4 +22,11 @@ metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . ) data: aaf-add-config.sh: | {{ tpl .Values.aaf_add_config . | indent 4 }} -{{- end -}} +{{- end }} +--- +apiVersion: v1 +kind: ConfigMap +{{- $suffix := "certs" }} +metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . ) | nindent 2 }} +data: +{{ tpl (.Files.Glob "resources/*").AsConfig . | indent 2 }} |