Fix E2T dynamic loglevel definitions
[ric-plt/ric-dep.git] / helm / e2term / templates / env.yaml
index aa2ae94..3d11225 100644 (file)
 #   See the License for the specific language governing permissions and        #
 #   limitations under the License.                                             #
 ################################################################################
+{{- $topCtx :=  . }}
+{{- range keys .Values.e2term }}
+{{- $key := . }}
+{{- with index $topCtx.Values.e2term . }}
+---
 apiVersion: v1
 kind: ConfigMap
 metadata:
-  name: {{ include "common.configmapname.e2term" . }}-env
+  name: {{ include "common.configmapname.e2term" $topCtx }}-env-{{ $key }}
 data:
-  DBAAS_SERVICE_HOST: {{ include "common.servicename.dbaas.tcp" . | quote }}
-  DBAAS_SERVICE_PORT: {{ include "common.serviceport.dbaas.tcp" . | quote }}
-  DBAAS_PORT_6379_TCP_ADDR: {{ include "common.servicename.dbaas.tcp" . | quote }}
-  DBAAS_PORT_6379_TCP_PORT: {{ include "common.serviceport.dbaas.tcp" . | quote }}
-  RMR_SRC_ID: {{ include "common.servicename.e2term.rmr" . }}.{{ include "common.namespace.platform" . }}
-  RMR_RTG_SVC: {{ include "common.serviceport.e2term.rmr.route" . | quote }}
+  RMR_SRC_ID: {{ include "common.servicename.e2term.rmr" $topCtx }}-{{ $key }}.{{ include "common.namespace.platform" $topCtx }}
+  RMR_RTG_SVC: {{ include "common.serviceport.e2term.rmr.route" $topCtx | quote }}
   RMR_SEED_RT: "router.txt"
   RMR_VCTL_FILE: "/tmp/rmr_verbose"
-  sctp: {{ include "common.serviceport.e2term.sctp" . | quote }}
-  nano: {{ include "common.serviceport.e2term.rmr.data" . | quote }}
-  print: "{{ .Values.e2term.env.print }}"
-  volume: "{{ .Values.e2term.env.messagecollectorfile }}"
+  sctp: {{ include "common.serviceport.e2term.sctp" $topCtx | quote }}
+  nano: {{ include "common.serviceport.e2term.rmr.data" $topCtx | quote }}
+  print: "{{ .env.print }}"
+  volume: "{{ .env.messagecollectorfile }}"
+
+{{- end }}
+{{- end }}