Skip to content

Commit

Permalink
Merge pull request #89609 from gavinfish/improve-discruption
Browse files Browse the repository at this point in the history
Continue label is no more needed for countHealthyPods()
  • Loading branch information
k8s-ci-robot committed Apr 23, 2020
2 parents 43cd2ff + 251706c commit fc08288
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/controller/disruption/disruption.go
Expand Up @@ -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 {
Expand All @@ -701,7 +700,6 @@ Pod:
}
if podutil.IsPodReady(pod) {
currentHealthy++
continue Pod
}
}

Expand Down

0 comments on commit fc08288

Please sign in to comment.