[AAI] Reintegrate AAI OOM charts in main repo
[oom.git] / kubernetes / aai / components / aai-babel / templates / configmap.yaml
1 # Copyright © 2018 Amdocs, AT&T
2 # Modifications Copyright © 2018 Bell Canada
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 apiVersion: v1
17 kind: ConfigMap
18 metadata:
19   name: {{ include "common.fullname" . }}-configmap
20   namespace: {{ include "common.namespace" . }}
21   labels:
22     app: {{ include "common.name" . }}
23     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24     release: {{ include "common.release" . }}
25     heritage: {{ .Release.Service }}
26 data:
27 {{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }}
28
29 {{ if .Values.global.installSidecarSecurity }}
30 ---
31 apiVersion: v1
32 kind: ConfigMap
33 metadata:
34   name: {{ include "common.fullname" . }}-fproxy-config
35   namespace: {{ include "common.namespace" . }}
36 data:
37 {{ tpl (.Files.Glob "resources/fproxy/config/*").AsConfig . | indent 2 }}
38 ---
39 apiVersion: v1
40 kind: ConfigMap
41 metadata:
42   name: {{ include "common.fullname" . }}-fproxy-log-config
43   namespace: {{ include "common.namespace" . }}
44 data:
45 {{ tpl (.Files.Glob "resources/fproxy/config/logback-spring.xml").AsConfig . | indent 2 }}
46 ---
47 apiVersion: v1
48 kind: ConfigMap
49 metadata:
50   name: {{ include "common.fullname" . }}-rproxy-config
51   namespace: {{ include "common.namespace" . }}
52 data:
53 {{ tpl (.Files.Glob "resources/rproxy/config/*").AsConfig . | indent 2 }}
54 ---
55 apiVersion: v1
56 kind: ConfigMap
57 metadata:
58   name: {{ include "common.fullname" . }}-rproxy-log-config
59   namespace: {{ include "common.namespace" . }}
60 data:
61 {{ tpl (.Files.Glob "resources/rproxy/config/logback-spring.xml").AsConfig . | indent 2 }}
62 ---
63 apiVersion: v1
64 kind: ConfigMap
65 metadata:
66   name: {{ include "common.fullname" . }}-rproxy-uri-auth-config
67   namespace: {{ include "common.namespace" . }}
68 data:
69 {{ tpl (.Files.Glob "resources/rproxy/config/auth/uri-authorization.json").AsConfig . | indent 2 }}
70 {{ end }}