Merge "Mounting logback.xml file to champ MS"
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>
Wed, 12 Sep 2018 13:47:31 +0000 (13:47 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 12 Sep 2018 13:47:31 +0000 (13:47 +0000)
1  2 
kubernetes/aai/charts/aai-champ/templates/configmap.yaml
kubernetes/aai/charts/aai-champ/templates/deployment.yaml

@@@ -1,5 -1,4 +1,5 @@@
  # Copyright © 2018 Amdocs, AT&T
 +# Modifications Copyright © 2018 Bell Canada
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
@@@ -28,3 -27,11 +28,11 @@@ metadata
    namespace: {{ include "common.namespace" . }}
  data:
  {{ tpl (.Files.Glob "resources/config/dynamic/conf/*").AsConfig . | indent 2 }}
+ ---
+ apiVersion: v1
+ kind: ConfigMap
+ metadata:
+   name: {{ include "common.fullname" . }}-log-configmap
+   namespace: {{ include "common.namespace" . }}
+ data:
+ {{ tpl (.Files.Glob "resources/config/log/*").AsConfig . | indent 2 }}
@@@ -1,5 -1,4 +1,5 @@@
  # Copyright © 2018 Amdocs, AT&T
 +# Modifications Copyright © 2018 Bell Canada
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
@@@ -97,6 -96,9 +97,9 @@@ spec
            - mountPath: /opt/app/champ-service/dynamic/conf/champ-beans.xml
              name: {{ include "common.fullname" . }}-dynamic-config
              subPath: champ-beans.xml
+           - mountPath: /opt/app/champ-service/bundleconfig/etc/logback.xml
+             name: {{ include "common.fullname" . }}-logback-config
+             subPath: logback.xml
            - mountPath: /logs
              name: {{ include "common.fullname" . }}-logs
            resources:
                path: champ-beans.xml
          - name: {{ include "common.fullname" . }}-logs
            emptyDir: {}
+         - name: {{ include "common.fullname" . }}-logback-config
+           configMap:
+             name: {{ include "common.fullname" . }}-log-configmap
+             items:
+             - key: logback.xml
+               path: logback.xml
        imagePullSecrets:
        - name: "{{ include "common.namespace" . }}-docker-registry-key"