Override aaf_locate_url from values.yaml 42/86042/6
authorpkaras <piotr.karas@nokia.com>
Tue, 23 Apr 2019 11:45:25 +0000 (13:45 +0200)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 10 May 2019 17:54:27 +0000 (17:54 +0000)
Change-Id: I189be373fb890f934d720e042274e2f06f3cd853
Issue-ID: DMAAP-1175
Signed-off-by: piotr.karas <piotr.karas@nokia.com>
Signed-off-by: Tomek Kaminski <tomasz.kaminski@nokia.com>
kubernetes/dmaap/components/dmaap-bc/resources/aaf/org.onap.dmaap-bc.props [new file with mode: 0644]
kubernetes/dmaap/components/dmaap-bc/templates/configmap.yaml
kubernetes/dmaap/components/dmaap-bc/templates/deployment.yaml
kubernetes/dmaap/components/dmaap-bc/values.yaml

diff --git a/kubernetes/dmaap/components/dmaap-bc/resources/aaf/org.onap.dmaap-bc.props b/kubernetes/dmaap/components/dmaap-bc/resources/aaf/org.onap.dmaap-bc.props
new file mode 100644 (file)
index 0000000..3c29073
--- /dev/null
@@ -0,0 +1,15 @@
+############################################################
+# Properties Generated by AT&T Certificate Manager
+#   by root
+#   on 2019-03-22T17:37:33.690+0000
+# @copyright 2016, AT&T
+############################################################
+aaf_env=DEV
+aaf_id=dmaap-bc@dmaap-bc.onap.org
+aaf_locate_url={{ .Values.aafLocateUrl }}
+aaf_url=https://AAF_LOCATE_URL/AAF_NS.service:2.1
+cadi_etc_dir=/opt/app/osaaf/local
+cadi_latitude=38.000
+cadi_longitude=-72.000
+cadi_prop_files=/opt/app/osaaf/local/org.onap.dmaap-bc.location.props:/opt/app/osaaf/local/org.onap.dmaap-bc.cred.props
+cm_url=https://AAF_LOCATE_URL/%CNS.%AAF_NS.cm:2.1
index 1066c94..8ca07a3 100644 (file)
@@ -51,3 +51,16 @@ metadata:
     heritage: {{ .Release.Service }}
 data:
 {{ tpl (.Files.Glob "resources/dcaeLocations/*.json").AsConfig . | indent 2 }}
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: {{ include "common.fullname" . }}-aaf-config
+  namespace: {{ include "common.namespace" . }}
+  labels:
+    app: {{ include "common.name" . }}
+    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
+data:
+{{ tpl (.Files.Glob "resources/aaf/*").AsConfig . | indent 2 }}
\ No newline at end of file
index fb31454..fffd4db 100644 (file)
@@ -97,6 +97,9 @@ spec:
 #       since there may be more than one file in each mountPath
           - name: {{ include "common.name" . }}-config
             mountPath: /opt/app/config/conf/
+          - name: {{ include "common.name" . }}-aaf-config
+            mountPath: /opt/app/dmaapbc/etc/org.onap.dmaap-bc.props
+            subPath: org.onap.dmaap-bc.props
 
           resources:
 {{ include "common.resources" . | indent 12 }}
@@ -115,5 +118,8 @@ spec:
         - name: {{ include "common.name" . }}-config
           configMap:
             name: {{ include "common.fullname" . }}-config
+        - name: {{ include "common.name" . }}-aaf-config
+          configMap:
+            name: {{ include "common.fullname" . }}-aaf-config
       imagePullSecrets:
       - name: "{{ include "common.namespace" . }}-docker-registry-key"
index 6b97414..171ac45 100644 (file)
@@ -35,11 +35,13 @@ image: onap/dmaap/dmaap-bc:1.1.5
 
 # application configuration
 dmaapMessageRouterService: message-router
+
 # change the following value to point to Windriver instance maintained
 # by AAF team.
 # e.g.
 #aafURL: https://aaf-onap-test.osaaf.org:8095/proxy/
 aafURL: https://aaf-service:8100/
+aafLocateUrl: https://aaf-locate:8095
 topicMgrUser: dmaap-bc@dmaap-bc.onap.org
 topicMgrPwd: demo123456!
 adminUser: aaf_admin@people.osaaf.org