[AAI] Make AAI helm3 compatible
[oom.git] / kubernetes / aai / components / aai-graphadmin / templates / configmap.yaml
1 {{/*
2 #
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=========================================================
20 */}}
21
22 apiVersion: v1
23 kind: ConfigMap
24 metadata:
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 }}
38 data:
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 ---
49 apiVersion: v1
50 kind: ConfigMap
51 metadata:
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
63 data:
64 {{ tpl (.Files.Glob "resources/config/migration/*").AsConfig . | indent 2 }}
65 {{- end }}