initial sdcore-helm-charts update
Change-Id: I91788de083b0f906ce4b32ac226f616fb2647ef9
diff --git a/5g-control-plane/templates/ingress-webui.yaml b/5g-control-plane/templates/ingress-webui.yaml
new file mode 100644
index 0000000..b41c736
--- /dev/null
+++ b/5g-control-plane/templates/ingress-webui.yaml
@@ -0,0 +1,26 @@
+{{/*
+# Copyright 2020-present Open Networking Foundation
+
+# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
+*/}}
+
+{{- if .Values.config.webui.ingress.enabled }}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: webui
+ labels:
+{{ tuple "webui" . | include "5g-control-plane.metadata_labels" | indent 4 }}
+spec:
+ rules:
+ - host: {{ .Values.config.webui.ingress.hostname }}
+ http:
+ paths:
+ - path: {{ .Values.config.webui.ingress.path }}
+ pathType: {{ .Values.config.webui.ingress.pathType }}
+ backend:
+ service:
+ name: webui
+ port:
+ number: {{ .Values.config.webui.urlport.port }}
+{{- end }}
\ No newline at end of file