Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 1 | {{/* |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 2 | # |
| 3 | # ============LICENSE_START======================================================= |
| 4 | # org.onap.aai |
| 5 | # ================================================================================ |
| 6 | # Copyright © 2018 AT&T Intellectual Property. All rights reserved. |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame^] | 7 | # Modifications Copyright © 2021 Orange |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 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========================================================= |
Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 21 | */}} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 22 | |
| 23 | apiVersion: v1 |
| 24 | kind: ConfigMap |
| 25 | metadata: |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame^] | 26 | name: {{ include "common.fullname" . }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 27 | namespace: {{ include "common.namespace" . }} |
| 28 | labels: |
| 29 | app: {{ include "common.name" . }} |
| 30 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 31 | release: {{ include "common.release" . }} |
| 32 | heritage: {{ .Release.Service }} |
| 33 | {{- if .Values.global.jobs.migration.enabled }} |
| 34 | annotations: |
| 35 | "helm.sh/hook": pre-upgrade,pre-install |
| 36 | "helm.sh/hook-weight": "0" |
| 37 | "helm.sh/hook-delete-policy": before-hook-creation |
| 38 | {{- end }} |
| 39 | data: |
| 40 | {{ tpl (.Files.Glob "resources/config/logback.xml").AsConfig . | indent 2 }} |
| 41 | {{ tpl (.Files.Glob "resources/config/localhost-access-logback.xml").AsConfig . | indent 2 }} |
| 42 | {{ tpl (.Files.Glob "resources/config/janusgraph-realtime.properties").AsConfig . | indent 2 }} |
| 43 | {{ tpl (.Files.Glob "resources/config/janusgraph-cached.properties").AsConfig . | indent 2 }} |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame^] | 44 | {{ tpl (.Files.Glob "resources/config/realm.properties").AsConfig . | indent 2 }} |
| 45 | --- |
| 46 | apiVersion: v1 |
| 47 | kind: ConfigMap |
| 48 | metadata: |
| 49 | name: {{ include "common.fullname" . }}-properties |
| 50 | namespace: {{ include "common.namespace" . }} |
| 51 | labels: |
| 52 | app: {{ include "common.name" . }} |
| 53 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 54 | release: {{ include "common.release" . }} |
| 55 | heritage: {{ .Release.Service }} |
| 56 | {{- if .Values.global.jobs.migration.enabled }} |
| 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 |
| 61 | {{- end }} |
| 62 | data: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 63 | {{ tpl (.Files.Glob "resources/config/aaiconfig.properties").AsConfig . | indent 2 }} |
| 64 | {{ tpl (.Files.Glob "resources/config/application.properties").AsConfig . | indent 2 }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 65 | {{- if .Values.global.jobs.migration.enabled }} |
| 66 | --- |
| 67 | apiVersion: v1 |
| 68 | kind: ConfigMap |
| 69 | metadata: |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame^] | 70 | name: {{ include "common.fullname" . }}-migration |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 71 | namespace: {{ include "common.namespace" . }} |
| 72 | labels: |
| 73 | app: {{ include "common.name" . }} |
| 74 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 75 | release: {{ include "common.release" . }} |
| 76 | heritage: {{ .Release.Service }} |
| 77 | annotations: |
| 78 | "helm.sh/hook": pre-upgrade,pre-install |
| 79 | "helm.sh/hook-weight": "0" |
| 80 | "helm.sh/hook-delete-policy": before-hook-creation |
| 81 | data: |
| 82 | {{ tpl (.Files.Glob "resources/config/migration/*").AsConfig . | indent 2 }} |
| 83 | {{- end }} |