blob: adc2220da12eba04886c3a81ef13058a69ae40d7 [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: Secret
18metadata:
19 name: {{ include "common.fullname" . }}-babel-secrets
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 }}
26type: Opaque
27data:
28{{ tpl (.Files.Glob "resources/config/auth/*").AsSecrets . | indent 2 }}
29---
30apiVersion: v1
31kind: Secret
32metadata:
33 name: {{ include "common.fullname" . }}-pass
34 namespace: {{ include "common.namespace" . }}
35 labels:
36 app: {{ include "common.name" . }}
37 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
38 release: {{ include "common.release" . }}
39 heritage: {{ .Release.Service }}
40type: Opaque
41data:
42 KEY_STORE_PASSWORD: {{ .Values.config.keyStorePassword | b64enc | quote }}
43 KEY_MANAGER_PASSWORD: {{ .Values.config.keyManagerPassword | b64enc | quote }}
44
45{{ if .Values.global.installSidecarSecurity }}
46---
47apiVersion: v1
48kind: Secret
49metadata:
50 name: {{ include "common.fullname" . }}-fproxy-auth-config
51 namespace: {{ include "common.namespace" . }}
52 labels:
53 app: {{ include "common.name" . }}
54 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
55 release: {{ include "common.release" . }}
56 heritage: {{ .Release.Service }}
57type: Opaque
58data:
59{{ tpl (.Files.Glob "resources/fproxy/config/auth/*").AsSecrets . | indent 2 }}
60---
61apiVersion: v1
62kind: Secret
63metadata:
64 name: {{ include "common.fullname" . }}-rproxy-auth-config
65 namespace: {{ include "common.namespace" . }}
66 labels:
67 app: {{ include "common.name" . }}
68 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
69 release: {{ include "common.release" . }}
70 heritage: {{ .Release.Service }}
71type: Opaque
72data:
73{{ tpl (.Files.Glob "resources/rproxy/config/auth/*").AsSecrets . | indent 2 }}
74---
75apiVersion: v1
76kind: Secret
77metadata:
78 name: {{ include "common.fullname" . }}-rproxy-security-config
79 namespace: {{ include "common.namespace" . }}
80 labels:
81 app: {{ include "common.name" . }}
82 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
83 release: {{ include "common.release" . }}
84 heritage: {{ .Release.Service }}
85type: Opaque
86data:
87{{ tpl (.Files.Glob "resources/rproxy/config/security/*").AsSecrets . | indent 2 }}
88{{ end }}