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