Skip to content

Commit

Permalink
Fix the problem of ResourceBinding remaining when the workload is del…
Browse files Browse the repository at this point in the history
…eted in the dependencies distribution scenario

Signed-off-by: changzhen <[email protected]>
  • Loading branch information
XiShanYongYe-Chang committed Dec 13, 2024
1 parent a286244 commit 80323d6
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 80323d6

Please sign in to comment.