Hyunsun Moon | 6a65148 | 2021-02-26 01:46:44 -0800 | [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 }} |