Merge pull request #89609 from gavinfish/improve-discruption

Continue label is no more needed for countHealthyPods()
This commit is contained in:
Kubernetes Prow Robot 2020-04-22 17:02:12 -07:00 committed by GitHub
commit fc08288bd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -689,7 +689,6 @@ func (dc *DisruptionController) getExpectedScale(pdb *policy.PodDisruptionBudget
}
func countHealthyPods(pods []*v1.Pod, disruptedPods map[string]metav1.Time, currentTime time.Time) (currentHealthy int32) {
Pod:
for _, pod := range pods {
// Pod is being deleted.
if pod.DeletionTimestamp != nil {
@ -701,7 +700,6 @@ Pod:
}
if podutil.IsPodReady(pod) {
currentHealthy++
continue Pod
}
}