Skip to content

Commit

Permalink
Merge pull request #5943 from XiShanYongYe-Chang/fix-5942
Browse files Browse the repository at this point in the history
Fix the problem of ResourceBinding remaining after resource template is deleted
  • Loading branch information
karmada-bot authored Dec 13, 2024
2 parents 471d850 + 82fc37e commit cf7ac41
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 cf7ac41

Please sign in to comment.