Rico Lin | d020bc2 | 2023-11-01 01:57:03 +0800 | [diff] [blame] | 1 | {{/* |
| 2 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | you may not use this file except in compliance with the License. |
| 4 | You may obtain a copy of the License at |
| 5 | |
| 6 | http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | |
| 8 | Unless required by applicable law or agreed to in writing, software |
| 9 | distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | See the License for the specific language governing permissions and |
| 12 | limitations under the License. |
| 13 | */}} |
| 14 | |
| 15 | {{- if .Values.manifests.configmap_bin }} |
| 16 | {{- $envAll := . }} |
| 17 | --- |
| 18 | apiVersion: v1 |
| 19 | kind: ConfigMap |
| 20 | metadata: |
| 21 | name: staffeln-bin |
| 22 | data: |
| 23 | {{- if .Values.images.local_registry.active }} |
| 24 | image-repo-sync.sh: | |
| 25 | {{- include "helm-toolkit.scripts.image_repo_sync" . | indent 4 }} |
| 26 | {{- end }} |
| 27 | {{- if .Values.bootstrap.enabled }} |
| 28 | bootstrap.sh: | |
| 29 | {{ tuple "bin/_bootstrap.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} |
| 30 | {{- end }} |
| 31 | db-init.py: | |
| 32 | {{- include "helm-toolkit.scripts.db_init" . | indent 4 }} |
| 33 | db-sync.sh: | |
| 34 | {{ tuple "bin/_db-sync.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} |
| 35 | db-drop.py: | |
| 36 | {{- include "helm-toolkit.scripts.db_drop" . | indent 4 }} |
| 37 | staffeln-conductor.sh: | |
| 38 | {{ tuple "bin/_staffeln-conductor.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} |
| 39 | staffeln-api.sh: | |
| 40 | {{ tuple "bin/_staffeln-api.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} |
| 41 | {{- end }} |