Merge pull request #103630 from mysunshine92/controller_util-annotation

Modify the wrong comment for controller_util.go
This commit is contained in:
Kubernetes Prow Robot 2021-08-24 10:37:14 -07:00 committed by GitHub
commit 4e832a7db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)