diff options
author | 2020-05-07 09:12:04 +0000 | |
---|---|---|
committer | 2020-05-07 09:12:04 +0000 | |
commit | f7591a5a90a005e825fddb4de73da62d55d6cb70 (patch) | |
tree | eedf49f7f351467398f272a2c5c4474dd8beae17 /kubernetes/sdnc/templates/configmap.yaml | |
parent | 858566a502e63459f4136fe6cea7490484089997 (diff) | |
parent | 6bab0cc2688623f3e376553954ae8bd3b6a143db (diff) |
Merge "[SDNC] Use common aaf template in SDNC"
Diffstat (limited to 'kubernetes/sdnc/templates/configmap.yaml')
-rw-r--r-- | kubernetes/sdnc/templates/configmap.yaml | 13 |
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 -}} |