summaryrefslogtreecommitdiffstats
path: root/kubernetes/portal/charts/portal-app/templates/configmap.yaml
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-04-07 21:17:05 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-07 21:17:05 +0000
commitcbf25d7244c93394e9b4950a95ef20e9b5f37e78 (patch)
treef389a6641e408eb7941ae439bf1b03b3e42e7368 /kubernetes/portal/charts/portal-app/templates/configmap.yaml
parent69332bb71f775f5a4676772cf5c003a2b6d9db59 (diff)
parent019b59c486b07007875976862807a6acaa92be82 (diff)
Merge "Portal-app auto cert gen"
Diffstat (limited to 'kubernetes/portal/charts/portal-app/templates/configmap.yaml')
-rw-r--r--kubernetes/portal/charts/portal-app/templates/configmap.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/kubernetes/portal/charts/portal-app/templates/configmap.yaml b/kubernetes/portal/charts/portal-app/templates/configmap.yaml
index d19ffeb9a8..d514fe6411 100644
--- a/kubernetes/portal/charts/portal-app/templates/configmap.yaml
+++ b/kubernetes/portal/charts/portal-app/templates/configmap.yaml
@@ -1,4 +1,5 @@
# Copyright © 2017 Amdocs, Bell Canada
+# Modifications Copyright © 2020 AT&T
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -25,3 +26,17 @@ metadata:
data:
{{ tpl (.Files.Glob "resources/config/deliveries/properties/ONAPPORTAL/*").AsConfig . | indent 2 }}
{{ tpl (.Files.Glob "resources/server/*").AsConfig . | 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: |-
+ /opt/app/aaf_config/bin/agent.sh;/opt/app/aaf_config/bin/agent.sh local showpass \
+ {{.Values.aafConfig.fqi}} {{ .Values.aafConfig.fqdn }} > {{ .Values.aafConfig.credsPath }}/mycreds.prop
+{{- end -}}
+{{- end -}}