Skip to content

Commit

Permalink
Fix machinebroker RBAC
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasfrank committed Jul 11, 2024
1 parent dec711a commit bc0ae0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions broker/machinebroker/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (

var _ iri.MachineRuntimeServer = (*Server)(nil)

//+kubebuilder:rbac:groups="",resources=events,verbs=get;list;watch
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=compute.ironcore.dev,resources=machines,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=compute.ironcore.dev,resources=machines/exec,verbs=get;create
Expand Down
8 changes: 8 additions & 0 deletions config/machinepoollet-broker/broker-rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ kind: Role
metadata:
name: broker-role
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit bc0ae0e

Please sign in to comment.