Sean Condon | fbc563d | 2021-12-08 15:54:26 -0800 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | apiVersion: v1 |
| 6 | kind: ConfigMap |
| 7 | metadata: |
| 8 | name: {{ template "chronos-exporter.fullname" . }}-config |
| 9 | labels: |
| 10 | app: {{ template "chronos-exporter.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 }} |