Jakub Latusek | 3659d9f | 2020-09-14 16:21:55 +0200 | [diff] [blame] | 1 | {{/* |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 2 | # Copyright © 2019 Orange |
| 3 | # Modifications Copyright © 2018 AT&T |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
Jakub Latusek | 3659d9f | 2020-09-14 16:21:55 +0200 | [diff] [blame] | 16 | */}} |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 17 | |
| 18 | apiVersion: v1 |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 19 | kind: ConfigMap |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 20 | metadata: |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 21 | name: {{ include "common.fullname" . }} |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 22 | namespace: {{ include "common.namespace" . }} |
| 23 | labels: |
| 24 | app: {{ include "common.name" . }} |
| 25 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 26 | release: {{ include "common.release" . }} |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 27 | heritage: {{ .Release.Service }} |
Sylvain Desbureaux | e44d170 | 2018-05-07 20:39:16 +0200 | [diff] [blame] | 28 | data: |
Sylvain Desbureaux | 1d061a4 | 2019-11-08 15:27:20 +0100 | [diff] [blame] | 29 | {{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }} |
RPMishra | e4ee7f1 | 2020-10-07 12:09:01 +0530 | [diff] [blame] | 30 | --- |
| 31 | {{ if .Values.dbScript }} |
| 32 | apiVersion: v1 |
| 33 | kind: ConfigMap |
| 34 | metadata: |
| 35 | name: {{ include "common.fullname" . }}-dbscript |
| 36 | namespace: {{ include "common.namespace" . }} |
| 37 | labels: |
| 38 | app: {{ include "common.name" . }} |
| 39 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 40 | release: {{ include "common.release" . }} |
| 41 | heritage: {{ .Release.Service }} |
| 42 | data: |
| 43 | db_cmd.sh: | |
| 44 | {{ tpl .Values.dbScript . | indent 4 }} |
| 45 | {{- end }} |