AETHER-1260 Better support of helm-kustomize for omec-control-plane chart
Change-Id: I24c22cbacca60e3b6c5c3bca7ec76c9c987c2b56
diff --git a/omec/omec-control-plane/templates/configmap-mme.yaml b/omec/omec-control-plane/templates/configmap-mme.yaml
index efbf281..f45f6ed 100644
--- a/omec/omec-control-plane/templates/configmap-mme.yaml
+++ b/omec/omec-control-plane/templates/configmap-mme.yaml
@@ -5,6 +5,7 @@
*/}}
{{- if .Values.config.mme.deploy }}
+{{- if not .Values.config.useExistingConfigMap }}
{{- $configJson := index .Values.config.mme.cfgFiles "config.json" }}
{{- $configJsonMme := index $configJson "mme" }}
{{- $configJsonS6a := index $configJson "s6a" }}
@@ -37,7 +38,7 @@
#Port = 3868;
#SecPort = 3869;
- ConnectPeer = {{ index $configJsonS6a "host" | quote }} { No_TLS; port = 3868; };
+ ConnectPeer = {{ tuple "hss" "identity" . | include "omec-control-plane.diameter_endpoint" | quote }} { No_TLS; port = 3868; };
LoadExtension = "/usr/local/lib/freeDiameter/dict_3gpp2_avps.fdx";
LoadExtension = "/usr/local/lib/freeDiameter/dict_draftload_avps.fdx";
@@ -85,6 +86,7 @@
{{ $key }}: |-
{{ toPrettyJson $value | indent 4 }}
{{- end }}
+{{- end }}
---
apiVersion: v1
kind: ConfigMap