Skip to content

Commit

Permalink
Add KMM permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Michail Resvanis <mresvani@redhat.com>
  • Loading branch information
mresvanis committed Sep 9, 2022
1 parent 92388a0 commit 92b9ca4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,15 @@ rules:
- get
- patch
- update
- apiGroups:
- kmm.sigs.k8s.io
resources:
- modules
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
1 change: 1 addition & 0 deletions controllers/deviceconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func NewDeviceConfigReconciler(
//+kubebuilder:rbac:groups=example.com,resources=deviceconfigs,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=example.com,resources=deviceconfigs/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=example.com,resources=deviceconfigs/finalizers,verbs=update
//+kubebuilder:rbac:groups="kmm.sigs.k8s.io",resources=modules,verbs=get;list;watch;create;update;patch;delete

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down

0 comments on commit 92b9ca4

Please sign in to comment.