AETHER-357 Add ability to run control plane components selectively
Change-Id: I73cd5bab0fa624cf6cd3bb26b465f18c4ab5fc64
diff --git a/omec/omec-control-plane/templates/configmap-mme.yaml b/omec/omec-control-plane/templates/configmap-mme.yaml
index f1c51af..bc5db25 100644
--- a/omec/omec-control-plane/templates/configmap-mme.yaml
+++ b/omec/omec-control-plane/templates/configmap-mme.yaml
@@ -4,6 +4,7 @@
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
*/}}
+{{- if .Values.config.mme.deploy }}
{{- $configJson := index .Values.config.mme.cfgFiles "config.json" }}
{{- $configJsonS6a := index $configJson "s6a" }}
@@ -34,7 +35,7 @@
#Port = 3868;
#SecPort = 3869;
- ConnectPeer = {{ tuple "hss" "identity" . | include "omec-control-plane.diameter_endpoint" | quote }} { No_TLS; port = 3868; };
+ ConnectPeer = {{ index $configJsonS6a "host" | quote }} { No_TLS; port = 3868; };
LoadExtension = "/usr/local/lib/freeDiameter/dict_3gpp2_avps.fdx";
LoadExtension = "/usr/local/lib/freeDiameter/dict_draftload_avps.fdx";
@@ -85,3 +86,4 @@
{{- range $key, $value := .Values.config.mme.cfgFiles }}
{{ $key }}: {{ toJson $value | quote }}
{{- end }}
+{{- end }}