sdnc dmaap config segrigation 39/29839/2
authormayankg2703 <mayank.gupta@amdocs.com>
Wed, 31 Jan 2018 13:53:19 +0000 (13:53 +0000)
committerAlexis de Talhouët <alexis.de_talhouet@bell.ca>
Thu, 1 Feb 2018 13:01:55 +0000 (13:01 +0000)
Change-Id: I42697eb8c1d2d7ac8a943be09d22aaaa61b865b9
Issue-ID: OOM-640
Signed-off-by: mayankg2703 <mayank.gupta@amdocs.com>
kubernetes/sdnc/resources/config/dmaap/dhcpalert.properties [moved from kubernetes/config/docker/init/src/config/sdnc/dmaap/dhcpalert.properties with 100% similarity]
kubernetes/sdnc/templates/dmaap-deployment-configmap.yaml [new file with mode: 0644]
kubernetes/sdnc/templates/dmaap-deployment.yaml

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