blob: 91cd7480661692bc41f4400583efda13af061c59 [file] [log] [blame]
Sylvain Desbureaux47eb4d22020-12-10 12:15:27 +01001{{/*
Sylvain Desbureaux70070412020-11-09 21:58:48 +01002#
3# ============LICENSE_START=======================================================
4# org.onap.aai
5# ================================================================================
6# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
7# ================================================================================
8# Licensed under the Apache License, Version 2.0 (the "License");
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS,
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19# ============LICENSE_END=========================================================
Sylvain Desbureaux47eb4d22020-12-10 12:15:27 +010020*/}}
Sylvain Desbureaux70070412020-11-09 21:58:48 +010021
22apiVersion: v1
23kind: ConfigMap
24metadata:
25 name: {{ include "common.fullname" . }}-configmap
26 namespace: {{ include "common.namespace" . }}
27 labels:
28 app: {{ include "common.name" . }}
29 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
30 release: {{ include "common.release" . }}
31 heritage: {{ .Release.Service }}
32 {{- if .Values.global.jobs.migration.enabled }}
33 annotations:
34 "helm.sh/hook": pre-upgrade,pre-install
35 "helm.sh/hook-weight": "0"
36 "helm.sh/hook-delete-policy": before-hook-creation
37 {{- end }}
38data:
39{{ tpl (.Files.Glob "resources/config/logback.xml").AsConfig . | indent 2 }}
40{{ tpl (.Files.Glob "resources/config/localhost-access-logback.xml").AsConfig . | indent 2 }}
41{{ tpl (.Files.Glob "resources/config/janusgraph-realtime.properties").AsConfig . | indent 2 }}
42{{ tpl (.Files.Glob "resources/config/janusgraph-cached.properties").AsConfig . | indent 2 }}
43{{ tpl (.Files.Glob "resources/config/aaiconfig.properties").AsConfig . | indent 2 }}
44{{ tpl (.Files.Glob "resources/config/application.properties").AsConfig . | indent 2 }}
45{{ tpl (.Files.Glob "resources/config/realm.properties").AsConfig . | indent 2 }}
46
47{{- if .Values.global.jobs.migration.enabled }}
48---
49apiVersion: v1
50kind: ConfigMap
51metadata:
52 name: {{ include "common.fullname" . }}-migration-configmap
53 namespace: {{ include "common.namespace" . }}
54 labels:
55 app: {{ include "common.name" . }}
56 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
57 release: {{ include "common.release" . }}
58 heritage: {{ .Release.Service }}
59 annotations:
60 "helm.sh/hook": pre-upgrade,pre-install
61 "helm.sh/hook-weight": "0"
62 "helm.sh/hook-delete-policy": before-hook-creation
63data:
64{{ tpl (.Files.Glob "resources/config/migration/*").AsConfig . | indent 2 }}
65{{- end }}