generated from crossplane/provider-template
-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathrole.yaml
45 lines (45 loc) · 958 Bytes
/
role.yaml
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
apiVersion: postgresql.sql.crossplane.io/v1alpha1
kind: Role
metadata:
name: parent-role
spec:
forProvider:
connectionLimit: 10
privileges:
login: true
configurationParameters:
- name: 'statement_timeout'
value: '123'
- name: 'search_path'
value: '"$user",public'
writeConnectionSecretToRef:
name: example-parent-role-secret
namespace: default
---
apiVersion: postgresql.sql.crossplane.io/v1alpha1
kind: Role
metadata:
name: example-role
spec:
forProvider:
privileges:
createDb: true
writeConnectionSecretToRef:
name: example-role-secret
namespace: default
---
apiVersion: postgresql.sql.crossplane.io/v1alpha1
kind: Role
metadata:
name: ownerrole
spec:
deletionPolicy: Orphan
writeConnectionSecretToRef:
name: ownerrole-secret
namespace: default
forProvider:
privileges:
createDb: true
login: true
createRole: true
inherit: true