blob: 6697b08aaf7d24c676fd97ad0bf3c9a15c3eef48 [file] [log] [blame]
Hyunsun Moon6a651482021-02-26 01:46:44 -08001{{/*
2# Copyright 2020-present Open Networking Foundation
3
4# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
5*/}}
6
Hyunsun Moonc73636b2021-03-24 15:47:08 -07007{{- if not .Values.config.useExistingConfigMap -}}
Hyunsun Moon6a651482021-02-26 01:46:44 -08008{{- $config := index .Values.config.commonCfgFiles "free5GC.conf" }}
9{{- if not (hasKey $config "db_uri") -}}
10{{- $_ := printf "%s/%s" .Values.config.mongodb.url .Values.config.mongodb.name | set $config "db_uri" -}}
11{{- end }}
12
13---
14apiVersion: v1
15kind: ConfigMap
16metadata:
17 name: common
18 labels:
19{{ tuple "common" . | include "5g-control-plane.metadata_labels" | indent 4 }}
20data:
21{{- range $key, $value := .Values.config.commonCfgFiles }}
22 {{ $key }}: |-
23{{ toYaml $value | indent 4 }}
24{{- end }}
Hyunsun Moonc73636b2021-03-24 15:47:08 -070025{{- end }}