Skip to content

Commit 6d0c44d

Browse files
authored
Merge pull request #1475 from mythi/PR-2023-032
operator: add missing IaaDevicePlugin finalizers RBAC
2 parents 0337834 + 34baf98 commit 6d0c44d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

deployments/operator/rbac/role.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ rules:
172172
- patch
173173
- update
174174
- watch
175+
- apiGroups:
176+
- deviceplugin.intel.com
177+
resources:
178+
- iaadeviceplugins/finalizers
179+
verbs:
180+
- update
175181
- apiGroups:
176182
- deviceplugin.intel.com
177183
resources:

pkg/controllers/iaa/controller.go

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const (
4141

4242
// +kubebuilder:rbac:groups=deviceplugin.intel.com,resources=iaadeviceplugins,verbs=get;list;watch;create;update;patch;delete
4343
// +kubebuilder:rbac:groups=deviceplugin.intel.com,resources=iaadeviceplugins/status,verbs=get;update;patch
44+
// +kubebuilder:rbac:groups=deviceplugin.intel.com,resources=iaadeviceplugins/finalizers,verbs=update
4445

4546
// SetupReconciler creates a new reconciler for IaaDevicePlugin objects.
4647
func SetupReconciler(mgr ctrl.Manager, namespace string, withWebhook bool) error {

0 commit comments

Comments
 (0)