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