31a82c3dd666af1f0d4cfb716ccd0adc9aa36d0e
[oom.git] / kubernetes / so / charts / so-ssl-certs / templates / secrets.yaml
1 # Copyright © 2018 AT&T USA
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 apiVersion: v1
15 data:
16   {{- $psyamlpath := printf "resources/config/server-certs/cadi_keystore_password" }}
17   {{- $tsyamlpath := printf "resources/config/server-certs/cadi_truststore_password" }}
18   cadi_keystore_password: {{ .Files.Get $psyamlpath | trimSuffix "\n" }}
19   cadi_truststore_password: {{ .Files.Get $tsyamlpath | trimSuffix "\n" }}
20 metadata:
21   name: {{ .Release.Name}}-so-ssl-pwd-secret
22   namespace: {{ include "common.namespace" . }}
23   labels:
24     app: {{ include "common.name" . }}
25     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26     release: {{ .Release.Name }}
27     heritage: {{ .Release.Service }}
28 kind: Secret
29 ---
30 apiVersion: v1
31 data:
32   {{- $csjksyamlpath := printf "resources/config/server-certs/mso-server-key-store.jks" }}
33   {{- $tsjksyamlpath := printf "resources/config/server-certs/mso-trust-store.jks" }}
34   mso-server-key-store.jks: {{ .Files.Get $csjksyamlpath  | trimSuffix "\n" }}
35   mso-trust-store.jks: {{ .Files.Get $tsjksyamlpath  | trimSuffix "\n" }}
36 metadata:
37   name: {{ .Release.Name}}-so-ssl-secret
38   namespace: {{ include "common.namespace" . }}
39   labels:
40     app: {{ include "common.name" . }}
41     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
42     release: {{ .Release.Name }}
43     heritage: {{ .Release.Service }}
44 kind: Secret
45 ---
46 apiVersion: v1
47 data:
48   {{- $kpyamlpath := printf "resources/config/client-certs/keystore_password" }}
49   {{- $tpyamlpath := printf "resources/config/client-certs/truststore_password" }}
50   keystore_password: {{ .Files.Get $kpyamlpath | trimSuffix "\n" }}
51   truststore_password: {{ .Files.Get $tpyamlpath | trimSuffix "\n" }}
52 metadata:
53   name: {{ .Release.Name}}-so-ssl-client-secret
54   namespace: {{ include "common.namespace" . }}
55 kind: Secret