blob: 14657ed6c9006d27b1d23f4512d3a905d28fb77e [file] [log] [blame]
Badhrinath987e1d82020-11-20 13:23:58 -06001{{/*
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.deploy }}
Hyunsun Moon6a651482021-02-26 01:46:44 -08008
9{{- $webuicfg := index .Values.config.webui.cfgFiles "webuicfg.conf" }}
10{{- $config := index $webuicfg "configuration" }}
11{{- if not (hasKey $config "mongodb") -}}
12{{- $_ := dict "name" .Values.config.mongodb.name "url" .Values.config.mongodb.url | set $config "mongodb" -}}
13{{- end }}
14
Badhrinath987e1d82020-11-20 13:23:58 -060015---
16apiVersion: v1
17kind: ConfigMap
18metadata:
19 name: webui
20 labels:
21{{ tuple "webui" . | include "5g-control-plane.metadata_labels" | indent 4 }}
22data:
23 webui-run.sh: |
24{{ tuple "bin/_webui-run.sh.tpl" . | include "5g-control-plane.template" | indent 4 }}
Hyunsun Moon6a651482021-02-26 01:46:44 -080025{{- range $key, $value := .Values.config.webui.cfgFiles }}
Badhrinath987e1d82020-11-20 13:23:58 -060026 {{ $key }}: |-
27{{ toYaml $value | indent 4 }}
28{{- end }}
29{{- end }}