badhri85 | 4c028b3 | 2021-11-03 18:24:05 -0500 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 5 | */}} |
| 6 | |
| 7 | {{- if .Values.config.webui.ingress.enabled }} |
| 8 | apiVersion: networking.k8s.io/v1 |
| 9 | kind: Ingress |
| 10 | metadata: |
| 11 | name: webui |
| 12 | labels: |
| 13 | {{ tuple "webui" . | include "5g-control-plane.metadata_labels" | indent 4 }} |
| 14 | spec: |
| 15 | rules: |
| 16 | - host: {{ .Values.config.webui.ingress.hostname }} |
| 17 | http: |
| 18 | paths: |
| 19 | - path: {{ .Values.config.webui.ingress.path }} |
| 20 | pathType: {{ .Values.config.webui.ingress.pathType }} |
| 21 | backend: |
| 22 | service: |
| 23 | name: webui |
| 24 | port: |
| 25 | number: {{ .Values.config.webui.urlport.port }} |
| 26 | {{- end }} |