d67601ca65378a4580fa646b47adf7b94b138590
[oom.git] / kubernetes / aaf / templates / secrets.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
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
15 apiVersion: v1
16 kind: Secret
17 metadata:
18   name: {{ .Release.Name}}-aaf-local-secret
19   namespace: {{ include "common.namespace" . }}
20   labels:
21     app: {{ include "common.name" . }}
22     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23     release: {{ .Release.Name }}
24     heritage: {{ .Release.Service }}
25 data:
26 {{ (.Files.Glob "resources/config/local/org.osaaf.aaf.trust.p12").AsSecrets | indent 2 }}
27 {{ (.Files.Glob "resources/config/local/org.osaaf.aaf.p12").AsSecrets | indent 2 }}
28 {{ (.Files.Glob "resources/config/local/org.osaaf.aaf.keyfile").AsSecrets | indent 2 }}
29 {{ (.Files.Glob "resources/config/local/org.osaaf.aaf.cm.p12").AsSecrets | indent 2 }}
30 type: Opaque
31 ---
32 apiVersion: v1
33 kind: Secret
34 metadata:
35   name: {{ .Release.Name}}-aaf-public-secret
36   namespace: {{ include "common.namespace" . }}
37   labels:
38     app: {{ include "common.name" . }}
39     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
40     release: {{ .Release.Name }}
41     heritage: {{ .Release.Service }}
42 data:
43 {{ (.Files.Glob "resources/config/public/truststoreONAP.p12").AsSecrets | indent 2 }}
44 {{ (.Files.Glob "resources/config/public/AAF_RootCA.cer").AsSecrets | indent 2 }}
45 {{ (.Files.Glob "resources/config/public/truststoreONAPall.jks").AsSecrets | indent 2 }}
46 type: Opaque
47