Add helm charts for drools,xacml pdps
[policy/docker.git] / helm / policy / components / policy-xacml-pdp / templates / secrets.yaml
1 {{/*
2 # Copyright © 2023 Nordix Foundation. All rights reserved.
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
17 apiVersion: v1
18 kind: Secret
19 metadata:
20   name: {{ .Chart.Name }}-db-secret
21   namespace: default
22   labels:
23     app: {{ .Chart.Name }}
24     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25     release: release
26     heritage: Helm
27 type: Opaque
28 stringData:
29   login: {{ .Values.db.user }}
30   password: {{ .Values.db.password }}
31
32 ---
33
34 apiVersion: v1
35 kind: Secret
36 metadata:
37   name: {{ .Chart.Name }}-restserver-creds
38   namespace: default
39   labels:
40     app: {{ .Chart.Name }}
41     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
42     release: release
43     heritage: Helm
44 type: Opaque
45 stringData:
46   login: {{ .Values.restServer.user }}
47   password: {{ .Values.restServer.password }}
48
49 ---
50
51 apiVersion: v1
52 kind: Secret
53 metadata:
54   name: {{ .Chart.Name }}-api-creds
55   namespace: default
56   labels:
57     app: {{ .Chart.Name }}
58     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
59     release: release
60     heritage: Helm
61 type: Opaque
62 stringData:
63   login: {{ .Values.apiServer.user }}
64   password: {{ .Values.apiServer.password }}
65