blob: 07e684d440ef7211164bfdf9e36b7fc2a3c8ffb5 [file] [log] [blame]
Sylvain Desbureaux70070412020-11-09 21:58:48 +01001# 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
16apiVersion: v1
17kind: ConfigMap
18metadata:
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 }}
26data:
27{{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }}
28
29{{ if .Values.global.installSidecarSecurity }}
30---
31apiVersion: v1
32kind: ConfigMap
33metadata:
34 name: {{ include "common.fullname" . }}-fproxy-config
35 namespace: {{ include "common.namespace" . }}
36data:
37{{ tpl (.Files.Glob "resources/fproxy/config/*").AsConfig . | indent 2 }}
38---
39apiVersion: v1
40kind: ConfigMap
41metadata:
42 name: {{ include "common.fullname" . }}-fproxy-log-config
43 namespace: {{ include "common.namespace" . }}
44data:
45{{ tpl (.Files.Glob "resources/fproxy/config/logback-spring.xml").AsConfig . | indent 2 }}
46---
47apiVersion: v1
48kind: ConfigMap
49metadata:
50 name: {{ include "common.fullname" . }}-rproxy-config
51 namespace: {{ include "common.namespace" . }}
52data:
53{{ tpl (.Files.Glob "resources/rproxy/config/*").AsConfig . | indent 2 }}
54---
55apiVersion: v1
56kind: ConfigMap
57metadata:
58 name: {{ include "common.fullname" . }}-rproxy-log-config
59 namespace: {{ include "common.namespace" . }}
60data:
61{{ tpl (.Files.Glob "resources/rproxy/config/logback-spring.xml").AsConfig . | indent 2 }}
62---
63apiVersion: v1
64kind: ConfigMap
65metadata:
66 name: {{ include "common.fullname" . }}-rproxy-uri-auth-config
67 namespace: {{ include "common.namespace" . }}
68data:
69{{ tpl (.Files.Glob "resources/rproxy/config/auth/uri-authorization.json").AsConfig . | indent 2 }}
70{{ end }}