Skip to content

Commit

Permalink
Reconcile on owned objects
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan committed Mar 25, 2022
1 parent d62f0d1 commit 21c0c13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/user_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 21c0c13

Please sign in to comment.