Config fixes for amf, smf, gnbsim
Fixing mongodb config for amf & smf
Fixing http server config for gnbsim
Change-Id: I39596c6b7bcaf8dc023b2efcac1a2b6d73250b3a
diff --git a/5g-control-plane/templates/configmap-amf.yaml b/5g-control-plane/templates/configmap-amf.yaml
index 887bcf0..d741d05 100644
--- a/5g-control-plane/templates/configmap-amf.yaml
+++ b/5g-control-plane/templates/configmap-amf.yaml
@@ -22,8 +22,8 @@
{{- $_ := .Values.config.amf.sctp_grpc.port | set $amfcfg.configuration "sctpGrpcPort" -}}
{{- end }}
-{{- if not (hasKey $amfcfg "mongodb") -}}
-{{- $_ := dict "name" .Values.config.mongodb.name "url" .Values.config.mongodb.url | set $amfcfg "mongodb" -}}
+{{- if not (hasKey $amfcfg.configuration "mongodb") -}}
+{{- $_ := dict "name" .Values.config.mongodb.name "url" .Values.config.mongodb.url | set $amfcfg.configuration "mongodb" -}}
{{- end }}
{{- if not (hasKey $amfcfg "logger") -}}