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