0f40d04dae540fe3bd898bde96443d3d1dff8a81
[oom.git] / kubernetes / aai / charts / aai-resources / templates / configmap.yaml
1 # Copyright © 2018 Amdocs, Bell Canada, AT&T
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 apiVersion: v1
16 kind: ConfigMap
17 metadata:
18   name: {{ include "common.fullname" . }}-log
19   namespace: {{ include "common.namespace" . }}
20   labels:
21     app: {{ include "common.name" . }}
22     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23     release: {{ .Release.Name }}
24     heritage: {{ .Release.Service }}
25 data:
26 {{ tpl (.Files.Glob "resources/config/logback.xml").AsConfig . | indent 2 }}
27 ---
28 apiVersion: v1
29 kind: ConfigMap
30 metadata:
31   name: {{ include "common.fullname" . }}-localhost-access-log-configmap
32   namespace: {{ include "common.namespace" . }}
33   labels:
34     app: {{ include "common.name" . }}
35     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
36     release: {{ .Release.Name }}
37     heritage: {{ .Release.Service }}
38 data:
39 {{ tpl (.Files.Glob "resources/config/localhost-access-logback.xml").AsConfig . | indent 2 }}
40 ---
41 apiVersion: v1
42 kind: ConfigMap
43 metadata:
44   name: {{ include "common.fullname" . }}-db-real-configmap
45   namespace: {{ include "common.namespace" . }}
46   labels:
47     app: {{ include "common.name" . }}
48     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
49     release: {{ .Release.Name }}
50     heritage: {{ .Release.Service }}
51 data:
52 {{ tpl (.Files.Glob "resources/config/janusgraph-realtime.properties").AsConfig . | indent 2 }}
53 ---
54 apiVersion: v1
55 kind: ConfigMap
56 metadata:
57   name: {{ include "common.fullname" . }}-db-cached-configmap
58   namespace: {{ include "common.namespace" . }}
59   labels:
60     app: {{ include "common.name" . }}
61     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
62     release: {{ .Release.Name }}
63     heritage: {{ .Release.Service }}
64 data:
65 {{ tpl (.Files.Glob "resources/config/janusgraph-cached.properties").AsConfig . | indent 2 }}
66 ---
67 apiVersion: v1
68 kind: ConfigMap
69 metadata:
70   name: {{ include "common.fullname" . }}-aaiconfig-configmap
71   namespace: {{ include "common.namespace" . }}
72   labels:
73     app: {{ include "common.name" . }}
74     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
75     release: {{ .Release.Name }}
76     heritage: {{ .Release.Service }}
77 data:
78 {{ tpl (.Files.Glob "resources/config/aaiconfig.properties").AsConfig . | indent 2 }}
79 ---
80 apiVersion: v1
81 kind: ConfigMap
82 metadata:
83   name: {{ include "common.fullname" . }}-springapp-configmap
84   namespace: {{ include "common.namespace" . }}
85   labels:
86     app: {{ include "common.name" . }}
87     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
88     release: {{ .Release.Name }}
89     heritage: {{ .Release.Service }}
90 data:
91 {{ tpl (.Files.Glob "resources/config/application.properties").AsConfig . | indent 2 }}
92 ---
93 apiVersion: v1
94 kind: ConfigMap
95 metadata:
96   name: {{ include "common.fullname" . }}-realm-configmap
97   namespace: {{ include "common.namespace" . }}
98   labels:
99     app: {{ include "common.name" . }}
100     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
101     release: {{ .Release.Name }}
102     heritage: {{ .Release.Service }}
103 data:
104 {{ tpl (.Files.Glob "resources/config/realm.properties").AsConfig . | indent 2 }}
105 ---
106 apiVersion: v1
107 kind: ConfigMap
108 metadata:
109   name: {{ include "common.fullname" . }}-aaf-props
110   namespace: {{ include "common.namespace" . }}
111   labels:
112     app: {{ include "common.name" . }}
113     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
114     release: {{ .Release.Name }}
115     heritage: {{ .Release.Service }}
116 data:
117 {{ tpl (.Files.Glob "resources/config/aaf/org.osaaf.location.props").AsConfig . | indent 2 }}
118 {{ tpl (.Files.Glob "resources/config/aaf/permissions.properties").AsConfig . | indent 2 }}
119 {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.props").AsConfig . | indent 2 }}
120 {{ tpl (.Files.Glob "resources/config/aaf/cadi.properties").AsConfig . | indent 2 }}
121
122 ---
123 apiVersion: v1
124 kind: Secret
125 metadata:
126   name: {{ include "common.fullname" . }}-aaf-keys
127   namespace: {{ include "common.namespace" . }}
128   labels:
129     app: {{ include "common.name" . }}
130     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
131     release: {{ .Release.Name }}
132     heritage: {{ .Release.Service }}
133 type: Opaque
134 data:
135 {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.keyfile").AsSecrets . | indent 2 }}
136 {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.p12").AsSecrets . | indent 2 }}
137 {{ tpl (.Files.Glob "resources/config/aaf/bath_config.csv").AsSecrets . | indent 2 }}
138
139 {{ if .Values.global.installSidecarSecurity }}
140 ---
141 apiVersion: v1
142 kind: ConfigMap
143 metadata:
144   name: {{ include "common.fullname" . }}-aai-policy-configmap
145   namespace: {{ include "common.namespace" . }}
146   labels:
147     app: {{ include "common.name" . }}
148     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
149     release: {{ .Release.Name }}
150     heritage: {{ .Release.Service }}
151 data:
152 {{ tpl (.Files.Glob "resources/config/auth/aai_policy.json").AsConfig . | indent 2 }}
153 ---
154 apiVersion: v1
155 kind: ConfigMap
156 metadata:
157   name: {{ include "common.fullname" . }}-fproxy-config
158   namespace: {{ include "common.namespace" . }}
159 data:
160 {{ tpl (.Files.Glob "resources/fproxy/config/*").AsConfig . | indent 2 }}
161 ---
162 apiVersion: v1
163 kind: ConfigMap
164 metadata:
165   name: {{ include "common.fullname" . }}-fproxy-log-config
166   namespace: {{ include "common.namespace" . }}
167   labels:
168     app: {{ include "common.name" . }}
169     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
170     release: {{ .Release.Name }}
171     heritage: {{ .Release.Service }}
172 data:
173 {{ tpl (.Files.Glob "resources/fproxy/config/logback-spring.xml").AsConfig . | indent 2 }}
174 ---
175 apiVersion: v1
176 kind: Secret
177 metadata:
178   name: {{ include "common.fullname" . }}-fproxy-auth-config
179   namespace: {{ include "common.namespace" . }}
180 type: Opaque
181 data:
182 {{ tpl (.Files.Glob "resources/fproxy/config/auth/*").AsSecrets . | indent 2 }}
183 ---
184 apiVersion: v1
185 kind: ConfigMap
186 metadata:
187   name: {{ include "common.fullname" . }}-rproxy-config
188   namespace: {{ include "common.namespace" . }}
189 data:
190 {{ tpl (.Files.Glob "resources/rproxy/config/*").AsConfig . | indent 2 }}
191 ---
192 apiVersion: v1
193 kind: ConfigMap
194 metadata:
195   name: {{ include "common.fullname" . }}-rproxy-log-config
196   namespace: {{ include "common.namespace" . }}
197   labels:
198     app: {{ include "common.name" . }}
199     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
200     release: {{ .Release.Name }}
201     heritage: {{ .Release.Service }}
202 data:
203 {{ tpl (.Files.Glob "resources/rproxy/config/logback-spring.xml").AsConfig . | indent 2 }}
204 ---
205 apiVersion: v1
206 kind: ConfigMap
207 metadata:
208   name: {{ include "common.fullname" . }}-rproxy-uri-auth-config
209   namespace: {{ include "common.namespace" . }}
210 data:
211 {{ tpl (.Files.Glob "resources/rproxy/config/auth/uri-authorization.json").AsConfig . | indent 2 }}
212 ---
213 apiVersion: v1
214 kind: Secret
215 metadata:
216   name: {{ include "common.fullname" . }}-rproxy-auth-config
217   namespace: {{ include "common.namespace" . }}
218 type: Opaque
219 data:
220 {{ tpl (.Files.Glob "resources/rproxy/config/auth/*").AsSecrets . | indent 2 }}
221 ---
222 apiVersion: v1
223 kind: Secret
224 metadata:
225   name: {{ include "common.fullname" . }}-rproxy-security-config
226   namespace: {{ include "common.namespace" . }}
227 type: Opaque
228 data:
229 {{ tpl (.Files.Glob "resources/rproxy/config/security/*").AsSecrets . | indent 2 }}
230 {{ end }}