blob: 2401af40be85a96d6cc29603f3c9ad99b78e6606 [file] [log] [blame]
# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
#
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "sdcore-adapter.fullname" . }}-targetconfig
labels:
app: {{ template "sdcore-adapter.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
data:
{{ $root := . }}
{{ range $path, $bytes := .Files.Glob "files/configs/*.json" }}
{{ base $path }}: '{{ $root.Files.Get $path }}'
{{ end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "sdcore-adapter.fullname" . }}-logconfig
labels:
app: {{ template "sdcore-adapter.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
data:
logging.yaml: |-
{{ toYaml .Values.logging | indent 4 }}