fix inaccurate code comment in pkg/estimator/client/general.go
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
This commit is contained in:
parent
e9730e2c55
commit
65086f4e97
|
@ -100,7 +100,7 @@ func getAllowedPodNumber(resourceSummary *clusterv1alpha1.ResourceSummary) int64
|
||||||
}
|
}
|
||||||
allowedPodNumber := allocatable - allocated - allocating
|
allowedPodNumber := allocatable - allocated - allocating
|
||||||
// When too many pods have been created, scheduling will fail so that the allocating pods number may be huge.
|
// 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 {
|
if allowedPodNumber <= 0 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue