Osman Amjad | ca07881 | 2021-12-15 14:31:54 -0600 | [diff] [blame^] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 5 | */}} |
| 6 | |
| 7 | {{- if .Values.config.dbtestapp.deploy }} |
| 8 | |
| 9 | apiVersion: v1 |
| 10 | kind: ConfigMap |
| 11 | metadata: |
| 12 | name: dbtestapp |
| 13 | labels: |
| 14 | {{ tuple "dbtestapp" . | include "5g-test-apps.metadata_labels" | indent 4 }} |
| 15 | data: |
| 16 | dbtestapp-run.sh: | |
| 17 | {{ tuple "bin/_dbtestapp-run.sh.tpl" . | include "5g-test-apps.template" | indent 4 }} |
| 18 | {{- if not .Values.config.useExistingConfigMap -}} |
| 19 | {{- range $key, $value := .Values.config.dbtestapp.cfgFiles }} |
| 20 | {{ $key }}: |- |
| 21 | {{ toYaml $value | indent 4 }} |
| 22 | {{- end }} |
| 23 | {{- end }} |
| 24 | {{- end }} |