[AAI] Reintegrate AAI OOM charts in main repo
[oom.git] / kubernetes / aai / components / aai-babel / templates / secrets.yaml
1 # 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
16 apiVersion: v1
17 kind: Secret
18 metadata:
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 }}
26 type: Opaque
27 data:
28 {{ tpl (.Files.Glob "resources/config/auth/*").AsSecrets . | indent 2 }}
29 ---
30 apiVersion: v1
31 kind: Secret
32 metadata:
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 }}
40 type: Opaque
41 data:
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 ---
47 apiVersion: v1
48 kind: Secret
49 metadata:
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 }}
57 type: Opaque
58 data:
59 {{ tpl (.Files.Glob "resources/fproxy/config/auth/*").AsSecrets . | indent 2 }}
60 ---
61 apiVersion: v1
62 kind: Secret
63 metadata:
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 }}
71 type: Opaque
72 data:
73 {{ tpl (.Files.Glob "resources/rproxy/config/auth/*").AsSecrets . | indent 2 }}
74 ---
75 apiVersion: v1
76 kind: Secret
77 metadata:
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 }}
85 type: Opaque
86 data:
87 {{ tpl (.Files.Glob "resources/rproxy/config/security/*").AsSecrets . | indent 2 }}
88 {{ end }}