SIMAPP to open 8080 port. Also pass new config to webconsole pod
Change-Id: I9a26f3e144f98d92a904c5bfa20730d06cda8617
diff --git a/omec/5g-control-plane/Chart.yaml b/omec/5g-control-plane/Chart.yaml
index dc877fb..d98af9d 100644
--- a/omec/5g-control-plane/Chart.yaml
+++ b/omec/5g-control-plane/Chart.yaml
@@ -8,7 +8,7 @@
name: 5g-control-plane
icon: https://guide.opencord.org/logos/cord.svg
-version: 0.2.16
+version: 0.2.17
dependencies:
- name: mongodb
diff --git a/omec/5g-control-plane/templates/configmap-webui.yaml b/omec/5g-control-plane/templates/configmap-webui.yaml
index 9a63728..07435ea 100644
--- a/omec/5g-control-plane/templates/configmap-webui.yaml
+++ b/omec/5g-control-plane/templates/configmap-webui.yaml
@@ -14,6 +14,9 @@
{{- $_ := .Values.config.logger | set $webuicfg "logger" -}}
{{- end }}
+{{- if not (hasKey $config "managedByConfigPod") -}}
+{{- $_ := .Values.config.managedByConfigPod | set $config "managedByConfigPod" -}}
+{{- end }}
{{- if not (hasKey $config "mongodb") -}}
{{- $_ := dict "name" .Values.config.mongodb.name "url" .Values.config.mongodb.url | set $config "mongodb" -}}
diff --git a/omec/omec-sub-provision/Chart.yaml b/omec/omec-sub-provision/Chart.yaml
index 22beaba..f57649e 100644
--- a/omec/omec-sub-provision/Chart.yaml
+++ b/omec/omec-sub-provision/Chart.yaml
@@ -8,4 +8,4 @@
name: omec-sub-provision
icon: https://guide.opencord.org/logos/cord.svg
-version: 0.0.2
+version: 0.0.3
diff --git a/omec/omec-sub-provision/templates/service-simapp.yaml b/omec/omec-sub-provision/templates/service-simapp.yaml
index ab91f83..74ef8a8 100644
--- a/omec/omec-sub-provision/templates/service-simapp.yaml
+++ b/omec/omec-sub-provision/templates/service-simapp.yaml
@@ -20,6 +20,9 @@
- name: prometheus-exporter
port: {{ .Values.config.simapp.prometheus.port }}
protocol: TCP
+ - name: config-exporter
+ port: {{ .Values.config.simapp.config.port }}
+ protocol: TCP
{{- if .Values.config.simapp.prometheus.nodePort.enabled }}
---
apiVersion: v1
@@ -39,5 +42,11 @@
protocol: TCP
nodePort: {{ .Values.config.simapp.prometheus.nodePort.port }}
{{- end }}
+{{- if .Values.config.simapp.config.nodePort.enabled }}
+ - name: config-exporter
+ port: {{ .Values.config.simapp.config.port }}
+ protocol: TCP
+ nodePort: {{ .Values.config.simapp.config.nodePort.port }}
+{{- end }}
{{- end }}
{{- end }}
diff --git a/omec/omec-sub-provision/values.yaml b/omec/omec-sub-provision/values.yaml
index 217d616..e36e24f 100644
--- a/omec/omec-sub-provision/values.yaml
+++ b/omec/omec-sub-provision/values.yaml
@@ -35,6 +35,11 @@
nodePort:
enabled: false
port: 30080
+ config:
+ port: 8080
+ nodePort:
+ enabled: false
+ port: 30081
cfgFiles:
simapp.yaml:
info: