Skip to content

Commit

Permalink
fix missing rbac rules
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Bortnikov <[email protected]>
  • Loading branch information
aobort committed Jun 12, 2024
1 parent b5b0486 commit c34b3ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ rules:
- ips/status
verbs:
- get
- apiGroups:
- metal.ironcore.dev
resources:
- inventories
verbs:
- get
- list
- watch
- apiGroups:
- metal.ironcore.dev
resources:
- inventories/status
verbs:
- get
- apiGroups:
- metal.ironcore.dev
resources:
Expand Down
2 changes: 2 additions & 0 deletions internal/controller/machine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import (
// +kubebuilder:rbac:groups=metal.ironcore.dev,resources=machines,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=metal.ironcore.dev,resources=machines/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=metal.ironcore.dev,resources=machines/finalizers,verbs=update
// +kubebuilder:rbac:groups=metal.ironcore.dev,resources=inventories,verbs=get;list;watch
// +kubebuilder:rbac:groups=metal.ironcore.dev,resources=inventories/status,verbs=get

const (
MachineFieldOwner string = "metal.ironcore.dev/machine"
Expand Down

0 comments on commit c34b3ed

Please sign in to comment.