Skip to content

Commit

Permalink
Merge pull request #1399 from eumel8/feat/userroles
Browse files Browse the repository at this point in the history
add aggregated ClusterRole to manage namespaced resources
  • Loading branch information
pepov authored Jul 31, 2023
2 parents 6e8647b + 97dc056 commit 5a8e76e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions charts/logging-operator/templates/userrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{{- if .Values.rbac.enabled }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ template "logging-operator.fullname" . }}-edit
labels:
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rules:
- apiGroups:
- logging.banzaicloud.io
resources:
- flows
- outputs
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- logging.banzaicloud.io
resources:
- syslogngflows
- syslogngoutputs
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
{{- end }}

0 comments on commit 5a8e76e

Please sign in to comment.