blob: 057871f35da42ee8b88214f0f16b80feac347ecb [file] [log] [blame]
Scott Bakere35e6832022-01-10 15:48:08 -08001# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
2#
3# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
5apiVersion: v1
6kind: ConfigMap
7metadata:
8 name: {{ template "sdcore-adapter.fullname" . }}-targetconfig
9 labels:
10 app: {{ template "sdcore-adapter.fullname" . }}
11 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
12 release: "{{ .Release.Name }}"
13 heritage: "{{ .Release.Service }}"
14data:
15 {{ $root := . }}
16 {{ range $path, $bytes := .Files.Glob "files/configs/*.json" }}
17 {{ base $path }}: '{{ $root.Files.Get $path }}'
18 {{ end }}
19
20---
21
22apiVersion: v1
23kind: ConfigMap
24metadata:
25 name: {{ template "sdcore-adapter.fullname" . }}-logconfig
26 labels:
27 app: {{ template "sdcore-adapter.fullname" . }}
28 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
29 release: "{{ .Release.Name }}"
30 heritage: "{{ .Release.Service }}"
31data:
32 logging.yaml: |-
33{{ toYaml .Values.logging | indent 4 }}