-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecrets.yml
46 lines (45 loc) · 1.06 KB
/
secrets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
apiVersion: v1
kind: Template
labels:
app: wikijs
template: wikijs
metadata:
name: wikijs
template.openshift.io/bindable: "false"
parameters:
- displaName: Name
name: NAME
required: true
value: wikijs
- displayName: Database Name
name: DATABASE_NAME
required: true
value: wiki
- displayName: Database User Name
name: DATABASE_USER
required: true
value: wiki
- displayName: Database User Password
from: '[a-zA-Z0-9]{16}'
generate: expression
name: DATABASE_PASSWORD
- displayName: Database Admin Password
from: '[a-zA-Z0-9]{16}'
generate: expression
name: DATABASE_ADMIN_PASSWORD
- displayName: Session Secret
from: '[a-zA-Z0-9]{16}'
generate: expression
name: SESSION_SECRET
objects:
- apiVersion: v1
kind: Secret
metadata:
name: ${NAME}-db
stringData:
database-name: ${DATABASE_NAME}
database-user: ${DATABASE_USER}
database-password: ${DATABASE_PASSWORD}
database-admin-password: ${DATABASE_ADMIN_PASSWORD}
session-secret: ${SESSION_SECRET}