AETHER-1342 Improve 5gc-control-plane helm chart

- Add image pull secrets support
- Use Bitnami chart repo for MongoDB
- Use Deployment instead of Statefulset for the core components
- Add Ingress for WebUI
- Consolidate common configs to a single configmap
- Configure mongodb URL and name in a single place
- Remove unncessary test configs from default values
- Fix hard-coded URLs configurable
- Hide POD_IP from default values and enable auto-set

Change-Id: I58c9925cd8f3892ed59c386278d9ea5359e6b013
diff --git a/omec/5g-control-plane/templates/configmap-ausf.yaml b/omec/5g-control-plane/templates/configmap-ausf.yaml
index 5dc0f98..efb0581 100644
--- a/omec/5g-control-plane/templates/configmap-ausf.yaml
+++ b/omec/5g-control-plane/templates/configmap-ausf.yaml
@@ -5,6 +5,20 @@
 */}}
 
 {{- if .Values.config.ausf.deploy }}
+
+{{- $ausfcfg := index .Values.config.ausf.cfgFiles "ausfcfg.conf" }}
+{{- $sbi := index $ausfcfg.configuration "sbi" }}
+
+{{- if not (hasKey $sbi "registerIPv4") -}}
+{{- $_ := "POD_IP" | set $sbi "registerIPv4" -}}
+{{- end }}
+{{- if not (hasKey $sbi "bindingIPv4") -}}
+{{- $_ := "POD_IP" | set $sbi "bindingIPv4" -}}
+{{- end }}
+{{- if not (hasKey $sbi "port") -}}
+{{- $_ := .Values.config.ausf.sbi.port | set $sbi "port" -}}
+{{- end }}
+
 ---
 apiVersion: v1
 kind: ConfigMap
@@ -15,7 +29,7 @@
 data:
   ausf-run.sh: |
 {{ tuple "bin/_ausf-run.sh.tpl" . | include "5g-control-plane.template" | indent 4 }}
-{{- range $key, $value := .Values.config.ausf.yamlCfgFiles }}
+{{- range $key, $value := .Values.config.ausf.cfgFiles }}
   {{ $key }}: |-
 {{ toYaml $value | indent 4 }}
 {{- end }}