Osman Amjad | ca07881 | 2021-12-15 14:31:54 -0600 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2020-present Open Networking Foundation |
| 3 | |
Ajay Lotan Thakur | 03189d2 | 2022-02-10 14:06:03 -0600 | [diff] [blame] | 4 | # SPDX-License-Identifier: Apache-2.0 |
Osman Amjad | ca07881 | 2021-12-15 14:31:54 -0600 | [diff] [blame] | 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 }} |