fix inaccurate code comment in pkg/estimator/client/general.go

Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
This commit is contained in:
wlp1153468871 2022-07-19 20:34:20 +08:00
parent e9730e2c55
commit 65086f4e97
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func getAllowedPodNumber(resourceSummary *clusterv1alpha1.ResourceSummary) int64
}
allowedPodNumber := allocatable - allocated - allocating
// When too many pods have been created, scheduling will fail so that the allocating pods number may be huge.
// If allowedPodNumber is less than 0, we don't allow more pods to be created.
// If allowedPodNumber is less than or equal to 0, we don't allow more pods to be created.
if allowedPodNumber <= 0 {
return 0
}