blob: 6708efdb609b11a4d20e12c146a19968e2d53bf5 [file] [log] [blame]
Jakub Latusek3659d9f2020-09-14 16:21:55 +02001{{/*
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +01002# Copyright © 2019 Orange
3# Modifications Copyright © 2018 AT&T
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +02004#
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 Latusek3659d9f2020-09-14 16:21:55 +020016*/}}
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020017
18apiVersion: v1
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010019kind: ConfigMap
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020020metadata:
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010021 name: {{ include "common.fullname" . }}
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020022 namespace: {{ include "common.namespace" . }}
23 labels:
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010026 release: {{ include "common.release" . }}
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020027 heritage: {{ .Release.Service }}
Sylvain Desbureauxe44d1702018-05-07 20:39:16 +020028data:
Sylvain Desbureaux1d061a42019-11-08 15:27:20 +010029{{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }}
RPMishrae4ee7f12020-10-07 12:09:01 +053030---
31{{ if .Values.dbScript }}
32apiVersion: v1
33kind: ConfigMap
34metadata:
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 }}
42data:
43 db_cmd.sh: |
44 {{ tpl .Values.dbScript . | indent 4 }}
45{{- end }}