Modify the wrong comment for controller_util.go

This commit is contained in:
wangyamei00221466 2021-07-10 08:38:28 +08:00
parent e799d7b191
commit 4a9896775d

View File

@ -833,7 +833,7 @@ func (s ActivePodsWithRanks) Less(i, j int) bool {
return !podutil.IsPodReady(s.Pods[i])
}
// 4. higher pod-deletion-cost < lower pod-deletion cost
// 4. lower pod-deletion-cost < higher pod-deletion cost
if utilfeature.DefaultFeatureGate.Enabled(features.PodDeletionCost) {
pi, _ := helper.GetDeletionCostFromPodAnnotations(s.Pods[i].Annotations)
pj, _ := helper.GetDeletionCostFromPodAnnotations(s.Pods[j].Annotations)