summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates/configmap.yaml
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-04-29 00:55:47 +0200
committerKrzysztof Opasiak <k.opasiak@samsung.com>2020-05-04 22:09:47 +0200
commit6bab0cc2688623f3e376553954ae8bd3b6a143db (patch)
tree46266e49f0c8be3e3f77b605c6e4a804996ffb08 /kubernetes/sdnc/templates/configmap.yaml
parent180578d41ed15c8e349faa943fa82bf41a145779 (diff)
[SDNC] Use common aaf template in SDNC
Issue-ID: AAF-1134 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I62eb9f20c66e4b26bc4625b121e52cf70d2b4063
Diffstat (limited to 'kubernetes/sdnc/templates/configmap.yaml')
-rw-r--r--kubernetes/sdnc/templates/configmap.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/kubernetes/sdnc/templates/configmap.yaml b/kubernetes/sdnc/templates/configmap.yaml
index 087ed30055..cd39425073 100644
--- a/kubernetes/sdnc/templates/configmap.yaml
+++ b/kubernetes/sdnc/templates/configmap.yaml
@@ -78,3 +78,16 @@ metadata:
heritage: {{ .Release.Service }}
data:
{{ tpl (.Files.Get "resources/env.yaml") . | indent 2 }}
+
+{{ if .Values.global.aafEnabled }}
+{{- if .Values.aafConfig.addconfig -}}
+---
+apiVersion: v1
+kind: ConfigMap
+{{- $suffix := "aaf-add-config" }}
+metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . )| nindent 2 }}
+data:
+ aaf-add-config.sh: |-
+ cd /opt/app/osaaf/local && /opt/app/aaf_config/bin/agent.sh local showpass {{.Values.aafConfig.fqi}} {{ .Values.aafConfig.fqdn }} | grep cadi_keystore_password= | cut -d= -f 2 > {{ .Values.aafConfig.credsPath }}/.pass 2>&1
+{{- end -}}
+{{- end -}}