Skip to content

Commit 5a8e76e

Browse files
authored
Merge pull request #1399 from eumel8/feat/userroles
add aggregated ClusterRole to manage namespaced resources
2 parents 6e8647b + 97dc056 commit 5a8e76e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{{- if .Values.rbac.enabled }}
2+
---
3+
apiVersion: rbac.authorization.k8s.io/v1
4+
kind: ClusterRole
5+
metadata:
6+
name: {{ template "logging-operator.fullname" . }}-edit
7+
labels:
8+
rbac.authorization.k8s.io/aggregate-to-admin: "true"
9+
rbac.authorization.k8s.io/aggregate-to-edit: "true"
10+
rules:
11+
- apiGroups:
12+
- logging.banzaicloud.io
13+
resources:
14+
- flows
15+
- outputs
16+
verbs:
17+
- create
18+
- delete
19+
- deletecollection
20+
- get
21+
- list
22+
- patch
23+
- update
24+
- watch
25+
- apiGroups:
26+
- logging.banzaicloud.io
27+
resources:
28+
- syslogngflows
29+
- syslogngoutputs
30+
verbs:
31+
- create
32+
- delete
33+
- deletecollection
34+
- get
35+
- list
36+
- patch
37+
- update
38+
- watch
39+
{{- end }}

0 commit comments

Comments
 (0)