blob: b0da359ab1c77bf49498c046fbdffb480e0498fb [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.
15
16# this is a shared resource for subcharts
Sylvain Desbureaux47eb4d22020-12-10 12:15:27 +010017*/}}
Sylvain Desbureaux70070412020-11-09 21:58:48 +010018apiVersion: v1
19kind: ConfigMap
20metadata:
21 name: aai-filebeat
22 namespace: {{ include "common.namespace" . }}
23 labels:
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
28data:
29{{ tpl (.Files.Glob "resources/config/log/filebeat/*").AsConfig . | indent 2 }}
30---
31apiVersion: v1
32kind: ConfigMap
33metadata:
34 name: aai-deployment-configmap
35 namespace: {{ include "common.namespace" . }}
36 labels:
37 app: {{ include "common.name" . }}
38 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
39 release: {{ include "common.release" . }}
40 heritage: {{ .Release.Service }}
41data:
42{{ if .Values.global.installSidecarSecurity }}
43{{ tpl (.Files.Glob "resources/config/haproxy/haproxy-pluggable-security.cfg").AsConfig . | indent 2 }}
44{{ else }}
45{{ tpl (.Files.Glob "resources/config/haproxy/haproxy.cfg").AsConfig . | indent 2 }}
46{{ end }}
Sylvain Desbureaux70070412020-11-09 21:58:48 +010047{{ if .Values.global.installSidecarSecurity }}
48---
49apiVersion: v1
50kind: Secret
51metadata:
52 name: aai-fproxy-auth-certs
53 namespace: {{ include "common.namespace" . }}
54type: Opaque
55data:
56{{ tpl (.Files.Glob "resources/config/fproxy/auth/*").AsSecrets . | indent 2 }}
57---
58apiVersion: v1
59kind: Secret
60metadata:
61 name: aai-rproxy-auth-certs
62 namespace: {{ include "common.namespace" . }}
63type: Opaque
64data:
65{{ tpl (.Files.Glob "resources/config/rproxy/auth/*").AsSecrets . | indent 2 }}
66---
67apiVersion: v1
68kind: Secret
69metadata:
70 name: aai-rproxy-security-config
71 namespace: {{ include "common.namespace" . }}
72type: Opaque
73data:
74{{ tpl (.Files.Glob "resources/config/rproxy/security/*").AsSecrets . | indent 2 }}
75{{ end }}