Delete todo comment to ignore update where 'old' is equivalent to 'cur' (#130322)

* use resource version to ignore updating pdb

* delete todo comment
This commit is contained in:
Keisuke Ishigami 2025-03-11 23:13:46 +09:00 committed by GitHub
parent 4c311c9fcf
commit efac8fdea2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -481,7 +481,6 @@ func (dc *DisruptionController) addDB(logger klog.Logger, obj interface{}) {
}
func (dc *DisruptionController) updateDB(logger klog.Logger, old, cur interface{}) {
// TODO(mml) ignore updates where 'old' is equivalent to 'cur'.
pdb := cur.(*policy.PodDisruptionBudget)
logger.V(4).Info("Update DB", "podDisruptionBudget", klog.KObj(pdb))
dc.enqueuePdb(logger, pdb)