blob: a5e1cfdecb2f547773e7563b58ce3d88b026538b [file] [log] [blame]
{{/*
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.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 }}