From 59c08321013cd81ec699a5abf2bb14e41817c94e Mon Sep 17 00:00:00 2001 From: rangajal Date: Mon, 21 Jun 2021 17:33:48 +0000 Subject: [PATCH] MDC Dynamic logging changes for a1mediator Change-Id: I68b41fee898d1630ec06fe74c1302bcb18a48303 Signed-off-by: rangajal --- helm/a1mediator/templates/config.yaml | 2 ++ helm/a1mediator/templates/deployment.yaml | 3 +-- helm/a1mediator/templates/env.yaml | 1 + helm/a1mediator/values.yaml | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) 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 @@ data: 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 @@ spec: - 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 @@ data: 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 @@ a1mediator: a1_rcv_retry_times: 20 ins_del_no_resp_ttl: 5 ins_del_resp_ttl: 10 + loglevel: "INFO" -- 2.16.6