Merge "Upgrade APPC to use common mariadb galera charts"
[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 kind: Secret
24 ---
25 apiVersion: v1
26 data:
27   {{- $csjksyamlpath := printf "resources/config/server-certs/mso-server-key-store.jks" }}
28   {{- $tsjksyamlpath := printf "resources/config/server-certs/mso-trust-store.jks" }}
29   mso-server-key-store.jks: {{ .Files.Get $csjksyamlpath  | trimSuffix "\n" }}
30   mso-trust-store.jks: {{ .Files.Get $tsjksyamlpath  | trimSuffix "\n" }}
31 metadata:
32   name: {{ .Release.Name}}-so-ssl-secret
33   namespace: {{ include "common.namespace" . }}
34 kind: Secret
35 ---
36 apiVersion: v1
37 data:
38   {{- $kpyamlpath := printf "resources/config/client-certs/keystore_password" }}
39   {{- $tpyamlpath := printf "resources/config/client-certs/truststore_password" }}
40   keystore_password: {{ .Files.Get $kpyamlpath | trimSuffix "\n" }}
41   truststore_password: {{ .Files.Get $tpyamlpath | trimSuffix "\n" }}
42 metadata:
43   name: {{ .Release.Name}}-so-ssl-client-secret
44   namespace: {{ include "common.namespace" . }}
45 kind: Secret