Skip to content

Commit 89b7039

Browse files
author
Jeff McCormick
committed
add sample user rbac rule to allow a user to view the pgo CRDs
1 parent c5be519 commit 89b7039

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

deploy/user-rbac.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
kind: ClusterRole
2+
apiVersion: rbac.authorization.k8s.io/v1beta1
3+
metadata:
4+
name: pgocrdreader
5+
rules:
6+
- verbs:
7+
- get
8+
- list
9+
apiGroups:
10+
- '*'
11+
resources:
12+
- pgclusters
13+
- pgbackups
14+
- pgingests
15+
- pgpolicies
16+
- pgreplicas
17+
- pgtasks
18+
- pgupgrades
19+
20+
---
21+
22+
apiVersion: rbac.authorization.k8s.io/v1beta1
23+
kind: ClusterRoleBinding
24+
metadata:
25+
name: pgocrdreaderbinding
26+
roleRef:
27+
apiGroup: rbac.authorization.k8s.io
28+
kind: ClusterRole
29+
name: pgocrdreader
30+
subjects:
31+
- apiGroup: rbac.authorization.k8s.io
32+
kind: User
33+
name: demo
34+
35+

0 commit comments

Comments
 (0)