Skip to content

Commit

Permalink
Merge pull request #170 from kajinamit/rbac-watch
Browse files Browse the repository at this point in the history
Watch RBAC resources to trigger reconcile
  • Loading branch information
openshift-merge-robot authored Jul 11, 2023
2 parents 1943ecd + de0ce2f commit c4086b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/neutronapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ func (r *NeutronAPIReconciler) SetupWithManager(mgr ctrl.Manager) error {
Owns(&keystonev1.KeystoneService{}).
Owns(&keystonev1.KeystoneEndpoint{}).
Owns(&rabbitmqv1.TransportURL{}).
Owns(&corev1.ServiceAccount{}).
Owns(&rbacv1.Role{}).
Owns(&rbacv1.RoleBinding{}).
Watches(&source.Kind{Type: &ovnclient.OVNDBCluster{}}, handler.EnqueueRequestsFromMapFunc(ovnclient.OVNDBClusterNamespaceMapFunc(crs, mgr.GetClient(), r.Log))).
Complete(r)
}
Expand Down

0 comments on commit c4086b8

Please sign in to comment.