Skip to content

Commit

Permalink
Merge pull request #53 from appuio/user-rbac
Browse files Browse the repository at this point in the history
Reconcile on owned objects
  • Loading branch information
bastjan authored Mar 25, 2022
2 parents d62f0d1 + 21c0c13 commit 695b9e8
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 695b9e8

Please sign in to comment.