AAI Rolling upgrade using helm hooks
[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" . }}-configmap
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 {{ tpl (.Files.Glob "resources/config/localhost-access-logback.xml").AsConfig . | indent 2 }}
28 {{ tpl (.Files.Glob "resources/config/janusgraph-realtime.properties").AsConfig . | indent 2 }}
29 {{ tpl (.Files.Glob "resources/config/janusgraph-cached.properties").AsConfig . | indent 2 }}
30 {{ tpl (.Files.Glob "resources/config/aaiconfig.properties").AsConfig . | indent 2 }}
31 {{ tpl (.Files.Glob "resources/config/application.properties").AsConfig . | indent 2 }}
32 {{ tpl (.Files.Glob "resources/config/realm.properties").AsConfig . | indent 2 }}
33 ---
34 apiVersion: v1
35 kind: ConfigMap
36 metadata:
37   name: {{ include "common.fullname" . }}-aaf-props
38   namespace: {{ include "common.namespace" . }}
39   labels:
40     app: {{ include "common.name" . }}
41     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
42     release: {{ .Release.Name }}
43     heritage: {{ .Release.Service }}
44 data:
45 {{ tpl (.Files.Glob "resources/config/aaf/org.osaaf.location.props").AsConfig . | indent 2 }}
46 {{ tpl (.Files.Glob "resources/config/aaf/permissions.properties").AsConfig . | indent 2 }}
47 {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.props").AsConfig . | indent 2 }}
48 {{ tpl (.Files.Glob "resources/config/aaf/cadi.properties").AsConfig . | indent 2 }}
49
50 ---
51 apiVersion: v1
52 kind: Secret
53 metadata:
54   name: {{ include "common.fullname" . }}-aaf-keys
55   namespace: {{ include "common.namespace" . }}
56   labels:
57     app: {{ include "common.name" . }}
58     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
59     release: {{ .Release.Name }}
60     heritage: {{ .Release.Service }}
61 type: Opaque
62 data:
63 {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.keyfile").AsSecrets . | indent 2 }}
64 {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.p12").AsSecrets . | indent 2 }}
65 {{ tpl (.Files.Glob "resources/config/aaf/bath_config.csv").AsSecrets . | indent 2 }}
66
67 {{ if .Values.global.installSidecarSecurity }}
68 ---
69 apiVersion: v1
70 kind: ConfigMap
71 metadata:
72   name: {{ include "common.fullname" . }}-aai-policy-configmap
73   namespace: {{ include "common.namespace" . }}
74   labels:
75     app: {{ include "common.name" . }}
76     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
77     release: {{ .Release.Name }}
78     heritage: {{ .Release.Service }}
79 data:
80 {{ tpl (.Files.Glob "resources/config/auth/aai_policy.json").AsConfig . | indent 2 }}
81 ---
82 apiVersion: v1
83 kind: ConfigMap
84 metadata:
85   name: {{ include "common.fullname" . }}-fproxy-config
86   namespace: {{ include "common.namespace" . }}
87 data:
88 {{ tpl (.Files.Glob "resources/fproxy/config/*").AsConfig . | indent 2 }}
89 ---
90 apiVersion: v1
91 kind: ConfigMap
92 metadata:
93   name: {{ include "common.fullname" . }}-fproxy-log-config
94   namespace: {{ include "common.namespace" . }}
95   labels:
96     app: {{ include "common.name" . }}
97     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
98     release: {{ .Release.Name }}
99     heritage: {{ .Release.Service }}
100 data:
101 {{ tpl (.Files.Glob "resources/fproxy/config/logback-spring.xml").AsConfig . | indent 2 }}
102 ---
103 apiVersion: v1
104 kind: Secret
105 metadata:
106   name: {{ include "common.fullname" . }}-fproxy-auth-config
107   namespace: {{ include "common.namespace" . }}
108 type: Opaque
109 data:
110 {{ tpl (.Files.Glob "resources/fproxy/config/auth/*").AsSecrets . | indent 2 }}
111 ---
112 apiVersion: v1
113 kind: ConfigMap
114 metadata:
115   name: {{ include "common.fullname" . }}-rproxy-config
116   namespace: {{ include "common.namespace" . }}
117 data:
118 {{ tpl (.Files.Glob "resources/rproxy/config/*").AsConfig . | indent 2 }}
119 ---
120 apiVersion: v1
121 kind: ConfigMap
122 metadata:
123   name: {{ include "common.fullname" . }}-rproxy-log-config
124   namespace: {{ include "common.namespace" . }}
125   labels:
126     app: {{ include "common.name" . }}
127     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
128     release: {{ .Release.Name }}
129     heritage: {{ .Release.Service }}
130 data:
131 {{ tpl (.Files.Glob "resources/rproxy/config/logback-spring.xml").AsConfig . | indent 2 }}
132 ---
133 apiVersion: v1
134 kind: ConfigMap
135 metadata:
136   name: {{ include "common.fullname" . }}-rproxy-uri-auth-config
137   namespace: {{ include "common.namespace" . }}
138 data:
139 {{ tpl (.Files.Glob "resources/rproxy/config/auth/uri-authorization.json").AsConfig . | indent 2 }}
140 ---
141 apiVersion: v1
142 kind: Secret
143 metadata:
144   name: {{ include "common.fullname" . }}-rproxy-auth-config
145   namespace: {{ include "common.namespace" . }}
146 type: Opaque
147 data:
148 {{ tpl (.Files.Glob "resources/rproxy/config/auth/*").AsSecrets . | indent 2 }}
149 ---
150 apiVersion: v1
151 kind: Secret
152 metadata:
153   name: {{ include "common.fullname" . }}-rproxy-security-config
154   namespace: {{ include "common.namespace" . }}
155 type: Opaque
156 data:
157 {{ tpl (.Files.Glob "resources/rproxy/config/security/*").AsSecrets . | indent 2 }}
158 {{ end }}