Merge pull request #2219 from wlp1153468871/wlp

fix inaccurate code comment in  pkg/estimator/client/general.go
This commit is contained in:
karmada-bot 2022-07-20 15:37:50 +08:00 committed by GitHub
commit 0fdc44e8ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 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
} }