mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Merge pull request #89609 from gavinfish/improve-discruption
Continue label is no more needed for countHealthyPods()
This commit is contained in:
commit
fc08288bd9
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue