[SO] 16.0.4 release
[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 # Modifications Copyright © 2021 Orange
8 # ================================================================================
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 #    http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 # ============LICENSE_END=========================================================
21 */}}
22
23 apiVersion: v1
24 kind: ConfigMap
25 metadata:
26   name: {{ include "common.fullname" . }}
27   namespace: {{ include "common.namespace" . }}
28   labels: {{- include "common.labels" . | nindent 4 }}
29   {{- if .Values.global.jobs.migration.enabled }}
30   annotations:
31     "helm.sh/hook": pre-upgrade,pre-install
32     "helm.sh/hook-weight": "0"
33     "helm.sh/hook-delete-policy": before-hook-creation
34   {{- end }}
35 data:
36 {{ tpl (.Files.Glob "resources/config/logback.xml").AsConfig . | indent 2 }}
37 {{ tpl (.Files.Glob "resources/config/localhost-access-logback.xml").AsConfig . | indent 2 }}
38 {{ tpl (.Files.Glob "resources/config/janusgraph-realtime.properties").AsConfig . | indent 2 }}
39 ---
40 apiVersion: v1
41 kind: ConfigMap
42 metadata:
43   name: {{ include "common.fullname" . }}-properties
44   namespace: {{ include "common.namespace" . }}
45   labels: {{- include "common.labels" . | nindent 4 }}
46   {{- if .Values.global.jobs.migration.enabled }}
47   annotations:
48     "helm.sh/hook": pre-upgrade,pre-install
49     "helm.sh/hook-weight": "0"
50     "helm.sh/hook-delete-policy": before-hook-creation
51   {{- end }}
52 data:
53 {{ tpl (.Files.Glob "resources/config/aaiconfig.properties").AsConfig . | indent 2 }}
54 {{ tpl (.Files.Glob "resources/config/application.properties").AsConfig . | indent 2 }}
55 {{- if .Values.global.jobs.migration.enabled }}
56 ---
57 apiVersion: v1
58 kind: ConfigMap
59 metadata:
60   name: {{ include "common.fullname" . }}-migration
61   namespace: {{ include "common.namespace" . }}
62   labels: {{- include "common.labels" . | nindent 4 }}
63   annotations:
64     "helm.sh/hook": pre-upgrade,pre-install
65     "helm.sh/hook-weight": "0"
66     "helm.sh/hook-delete-policy": before-hook-creation
67 data:
68 {{ tpl (.Files.Glob "resources/config/migration/*").AsConfig . | indent 2 }}
69 {{- end }}