mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #89609 from gavinfish/improve-discruption
Continue label is no more needed for countHealthyPods()
This commit is contained in:
commit
fc08288bd9
@ -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) {
|
func countHealthyPods(pods []*v1.Pod, disruptedPods map[string]metav1.Time, currentTime time.Time) (currentHealthy int32) {
|
||||||
Pod:
|
|
||||||
for _, pod := range pods {
|
for _, pod := range pods {
|
||||||
// Pod is being deleted.
|
// Pod is being deleted.
|
||||||
if pod.DeletionTimestamp != nil {
|
if pod.DeletionTimestamp != nil {
|
||||||
@ -701,7 +700,6 @@ Pod:
|
|||||||
}
|
}
|
||||||
if podutil.IsPodReady(pod) {
|
if podutil.IsPodReady(pod) {
|
||||||
currentHealthy++
|
currentHealthy++
|
||||||
continue Pod
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user