Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
only reconcile operandrequest when generation change
  • Loading branch information
horis233 committed Nov 25, 2020
commit 9991c839c81934a9fc549c6892a8c189d18d7ca5
2 changes: 1 addition & 1 deletion controllers/operandrequest_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func getConfigToRequestMapper(mgr manager.Manager) handler.ToRequestsFunc {
// SetupWithManager adds OperandRequest controller to the manager.
func (r *OperandRequestReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
For(&operatorv1alpha1.OperandRequest{}).
For(&operatorv1alpha1.OperandRequest{}, builder.WithPredicates(predicate.GenerationChangedPredicate{})).
Watches(&source.Kind{Type: &operatorv1alpha1.OperandRegistry{}}, &handler.EnqueueRequestsFromMapFunc{
ToRequests: getRegistryToRequestMapper(mgr),
}, builder.WithPredicates(predicate.Funcs{
Expand Down