Merge pull request #5943 from XiShanYongYe-Chang/fix-5942

Fix the problem of ResourceBinding remaining after resource template is deleted
This commit is contained in:
karmada-bot 2024-12-13 14:18:16 +08:00 committed by GitHub
commit cf7ac419e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 5 deletions

View File

@ -656,11 +656,6 @@ func (d *DependenciesDistributor) SetupWithManager(mgr controllerruntime.Manager
return false 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 return oldBindingObject.Spec.PropagateDeps || newBindingObject.Spec.PropagateDeps
}, },
}). }).