diff --git a/controllers/user_controller.go b/controllers/user_controller.go index ef117817..e5360985 100644 --- a/controllers/user_controller.go +++ b/controllers/user_controller.go @@ -114,6 +114,8 @@ func (r *UserReconciler) updateClusterRoleBinding(ctx context.Context, user cont func (r *UserReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). For(&controlv1.User{}). + Owns(&rbacv1.ClusterRole{}). + Owns(&rbacv1.ClusterRoleBinding{}). Complete(r) }