Skip to content

Commit

Permalink
Watch RBAC resources to trigger reconcile
Browse files Browse the repository at this point in the history
This ensures the controller watches service account, role, and role
bindings to reconcile these resources in case any change is made.
  • Loading branch information
kajinamit committed Jul 6, 2023
1 parent d997613 commit 15f1f23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/horizon_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ func (r *HorizonReconciler) SetupWithManager(mgr ctrl.Manager) error {
Owns(&corev1.ConfigMap{}).
Owns(&appsv1.Deployment{}).
Owns(&routev1.Route{}).
Owns(&corev1.ServiceAccount{}).
Owns(&rbacv1.Role{}).
Owns(&rbacv1.RoleBinding{}).
Complete(r)
}

Expand Down

0 comments on commit 15f1f23

Please sign in to comment.