Scott Baker | e35e683 | 2022-01-10 15:48:08 -0800 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
Sean Condon | 160ec1d | 2022-02-08 12:58:25 +0000 | [diff] [blame] | 3 | # SPDX-License-Identifier: Apache-2.0 |
Scott Baker | e35e683 | 2022-01-10 15:48:08 -0800 | [diff] [blame] | 4 | |
| 5 | apiVersion: v1 |
| 6 | kind: ConfigMap |
| 7 | metadata: |
| 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 }}" |
| 14 | data: |
| 15 | {{ $root := . }} |
| 16 | {{ range $path, $bytes := .Files.Glob "files/configs/*.json" }} |
| 17 | {{ base $path }}: '{{ $root.Files.Get $path }}' |
| 18 | {{ end }} |
| 19 | |
| 20 | --- |
| 21 | |
| 22 | apiVersion: v1 |
| 23 | kind: ConfigMap |
| 24 | metadata: |
| 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 }}" |
| 31 | data: |
| 32 | logging.yaml: |- |
| 33 | {{ toYaml .Values.logging | indent 4 }} |