Merge "MDC Dynamic logging changes for a1mediator"
diff --git a/helm/a1mediator/templates/config.yaml b/helm/a1mediator/templates/config.yaml
index 97a07b3..3dc51af 100644
--- a/helm/a1mediator/templates/config.yaml
+++ b/helm/a1mediator/templates/config.yaml
@@ -32,3 +32,5 @@
rte|20011|{{ include "common.servicename.a1mediator.rmr" . }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.a1mediator.rmr.data" . }}
rte|20012|{{ include "common.servicename.a1mediator.rmr" . }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.a1mediator.rmr.data" . }}
newrt|end
+ loglevel.txt: |
+ log-level: {{ .Values.loglevel }}
diff --git a/helm/a1mediator/templates/deployment.yaml b/helm/a1mediator/templates/deployment.yaml
index 589eecd..a4023e7 100644
--- a/helm/a1mediator/templates/deployment.yaml
+++ b/helm/a1mediator/templates/deployment.yaml
@@ -51,8 +51,7 @@
- name: {{ include "common.containername.a1mediator" . }}
volumeMounts:
- name: a1conf
- mountPath: /opt/route/local.rt
- subPath: local.rt
+ mountPath: /opt/route
envFrom:
- configMapRef:
name: {{ include "common.configmapname.a1mediator" . }}-env
diff --git a/helm/a1mediator/templates/env.yaml b/helm/a1mediator/templates/env.yaml
index 2361a4d..b2e3216 100644
--- a/helm/a1mediator/templates/env.yaml
+++ b/helm/a1mediator/templates/env.yaml
@@ -27,3 +27,4 @@
RMR_SRC_ID: {{ include "common.servicename.a1mediator.rmr" . }}.{{ include "common.namespace.platform" . }}
INSTANCE_DELETE_NO_RESP_TTL: "{{ .Values.a1mediator.rmr_timeout_config.ins_del_no_resp_ttl }}"
INSTANCE_DELETE_RESP_TTL: "{{ .Values.a1mediator.rmr_timeout_config.ins_del_resp_ttl }}"
+ CONFIG_MAP_NAME: "/opt/route/loglevel.txt"
diff --git a/helm/a1mediator/values.yaml b/helm/a1mediator/values.yaml
index 2c2f613..2790586 100644
--- a/helm/a1mediator/values.yaml
+++ b/helm/a1mediator/values.yaml
@@ -38,3 +38,4 @@
a1_rcv_retry_times: 20
ins_del_no_resp_ttl: 5
ins_del_resp_ttl: 10
+ loglevel: "INFO"