blob: 2a8a2b195c16b1f609f5067fb4970b55c9a9c6f5 [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.ausf.deploy }}
Hyunsun Moon6a651482021-02-26 01:46:44 -08008
Hyunsun Moonc73636b2021-03-24 15:47:08 -07009{{- if not .Values.config.useExistingConfigMap -}}
Hyunsun Moon6a651482021-02-26 01:46:44 -080010{{- $ausfcfg := index .Values.config.ausf.cfgFiles "ausfcfg.conf" }}
11{{- $sbi := index $ausfcfg.configuration "sbi" }}
12
Ajay Lotan Thakuref182f42021-05-25 16:41:19 -050013{{- if not (hasKey $ausfcfg "logger") -}}
14{{- $_ := .Values.config.logger | set $ausfcfg "logger" -}}
15{{- end }}
16
17
Hyunsun Moon6a651482021-02-26 01:46:44 -080018{{- if not (hasKey $sbi "port") -}}
19{{- $_ := .Values.config.ausf.sbi.port | set $sbi "port" -}}
20{{- end }}
Hyunsun Moonc73636b2021-03-24 15:47:08 -070021{{- end }}
Hyunsun Moon6a651482021-02-26 01:46:44 -080022
Badhrinath987e1d82020-11-20 13:23:58 -060023---
24apiVersion: v1
25kind: ConfigMap
26metadata:
27 name: ausf
28 labels:
29{{ tuple "ausf" . | include "5g-control-plane.metadata_labels" | indent 4 }}
30data:
31 ausf-run.sh: |
32{{ tuple "bin/_ausf-run.sh.tpl" . | include "5g-control-plane.template" | indent 4 }}
Hyunsun Moonc73636b2021-03-24 15:47:08 -070033{{- if not .Values.config.useExistingConfigMap -}}
Hyunsun Moon6a651482021-02-26 01:46:44 -080034{{- range $key, $value := .Values.config.ausf.cfgFiles }}
Badhrinath987e1d82020-11-20 13:23:58 -060035 {{ $key }}: |-
36{{ toYaml $value | indent 4 }}
37{{- end }}
38{{- end }}
Hyunsun Moonc73636b2021-03-24 15:47:08 -070039{{- end }}