blob: d2735b48821db7e7acb0d2545b5c67f82c0cdf57 [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 }}
47---
48apiVersion: v1
49kind: Secret
50metadata:
51 name: aai-haproxy-secret
52 namespace: {{ include "common.namespace" . }}
53 labels:
54 app: {{ include "common.name" . }}
55 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
56 release: {{ include "common.release" . }}
57 heritage: {{ .Release.Service }}
58type: Opaque
59data:
60{{ tpl (.Files.Glob "resources/config/haproxy/aai.pem").AsSecrets . | indent 2 }}
61# This is a shared key for both resources and traversal
62---
63apiVersion: v1
64kind: Secret
65metadata:
66 name: aai-auth-truststore-secret
67 namespace: {{ include "common.namespace" . }}
68 labels:
69 app: {{ include "common.name" . }}
70 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
71 release: {{ include "common.release" . }}
72 heritage: {{ .Release.Service }}
73type: Opaque
74data:
75{{ tpl (.Files.Glob "resources/config/aai/*").AsSecrets . | indent 2 }}
76
77{{ if .Values.global.installSidecarSecurity }}
78---
79apiVersion: v1
80kind: Secret
81metadata:
82 name: aai-fproxy-auth-certs
83 namespace: {{ include "common.namespace" . }}
84type: Opaque
85data:
86{{ tpl (.Files.Glob "resources/config/fproxy/auth/*").AsSecrets . | indent 2 }}
87---
88apiVersion: v1
89kind: Secret
90metadata:
91 name: aai-rproxy-auth-certs
92 namespace: {{ include "common.namespace" . }}
93type: Opaque
94data:
95{{ tpl (.Files.Glob "resources/config/rproxy/auth/*").AsSecrets . | indent 2 }}
96---
97apiVersion: v1
98kind: Secret
99metadata:
100 name: aai-rproxy-security-config
101 namespace: {{ include "common.namespace" . }}
102type: Opaque
103data:
104{{ tpl (.Files.Glob "resources/config/rproxy/security/*").AsSecrets . | indent 2 }}
105{{ end }}