From 251706ceb4ba2bd125a14a4f6dfd9c36b65be534 Mon Sep 17 00:00:00 2001 From: drfish Date: Sat, 28 Mar 2020 09:57:25 +0800 Subject: [PATCH] Continue label is no more needed for countHealthyPods() --- pkg/controller/disruption/disruption.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/controller/disruption/disruption.go b/pkg/controller/disruption/disruption.go index 7386029d919..ac64129753e 100644 --- a/pkg/controller/disruption/disruption.go +++ b/pkg/controller/disruption/disruption.go @@ -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 } }