Skip to content

Commit

Permalink
fix: aggregate clusterrole to admission controller
Browse files Browse the repository at this point in the history
Signed-off-by: ShutingZhao <[email protected]>
  • Loading branch information
realshuting committed Sep 4, 2024
1 parent c3965e9 commit e5f61f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: kyverno:rbac
labels:
rbac.kyverno.io/aggregate-to-background-controller: "true"
rbac.kyverno.io/aggregate-to-admission-controller: "true"
rules:
- apiGroups:
- rbac.authorization.k8s.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,27 @@ metadata:
rules:
- apiGroups:
- ""
- iam.aws.crossplane.io
resources:
- namespaces
- roles
verbs:
- create
- update
- delete
- get
- apiGroups:
- iam.aws.crossplane.io
resources:
- roles
verbs:
- list
- get
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles
verbs:
- list
- get
- apiGroups:
- kyverno.io
resources:
Expand Down

0 comments on commit e5f61f5

Please sign in to comment.