sdnc ueb config segrigation 41/29841/2
authormayankg2703 <mayank.gupta@amdocs.com>
Wed, 31 Jan 2018 13:55:56 +0000 (13:55 +0000)
committerAlexis de Talhouët <alexis.de_talhouet@bell.ca>
Thu, 1 Feb 2018 13:02:20 +0000 (13:02 +0000)
Change-Id: Ie67e41f09dceb058d5b60f4ff90c4c819ec7387a
Issue-ID: OOM-641
Signed-off-by: mayankg2703 <mayank.gupta@amdocs.com>
kubernetes/sdnc/resources/config/ueb/ueb-listener.properties [moved from kubernetes/config/docker/init/src/config/sdnc/ueb/ueb-listener.properties with 100% similarity]
kubernetes/sdnc/templates/ueb-deployment-configmap.yaml [new file with mode: 0644]
kubernetes/sdnc/templates/ueb-deployment.yaml

diff --git a/kubernetes/sdnc/templates/ueb-deployment-configmap.yaml b/kubernetes/sdnc/templates/ueb-deployment-configmap.yaml
new file mode 100644 (file)
index 0000000..4970de0
--- /dev/null
@@ -0,0 +1,9 @@
+#{{ if not .Values.disableSdncUeb }}
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: sdnc-ueb-configmap
+  namespace: {{ .Values.nsPrefix }}-sdnc
+data:
+{{ tpl (.Files.Glob "resources/config/ueb/*").AsConfig . | indent 2 }}
+#{{ end }}
index 324e0e1..a7e5e74 100644 (file)
@@ -47,14 +47,15 @@ spec:
           name: localtime
           readOnly: true
         - mountPath: /opt/onap/sdnc/data/properties/ueb-listener.properties
+          subPath: ueb-listener.properties
           name: ueb-config
       volumes:
         - name: localtime
           hostPath:
             path: /etc/localtime
         - name: ueb-config
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/ueb/ueb-listener.properties
+          configMap:
+            name: sdnc-ueb-configmap
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
-#{{ end }}
\ No newline at end of file
+#{{ end }}