Skip to content

Commit

Permalink
fix karmada-io#5942: remove no schedule check when update ResourceBin…
Browse files Browse the repository at this point in the history
…ding in dependencies distributor

Signed-off-by: changzhen <[email protected]>
  • Loading branch information
XiShanYongYe-Chang committed Dec 12, 2024
1 parent 471d850 commit 7b5d295
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/dependenciesdistributor/dependencies_distributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,6 @@ func (d *DependenciesDistributor) SetupWithManager(mgr controllerruntime.Manager
return false
}

// prevent newBindingObject from the queue if it's not scheduled yet.
if len(oldBindingObject.Spec.Clusters) == 0 && len(newBindingObject.Spec.Clusters) == 0 {
klog.V(4).Infof("Dropping resource binding(%s/%s) as it is not scheduled yet.", newBindingObject.Namespace, newBindingObject.Name)
return false
}
return oldBindingObject.Spec.PropagateDeps || newBindingObject.Spec.PropagateDeps
},
}).
Expand Down

0 comments on commit 7b5d295

Please sign in to comment.