From eefed110ebe30abe6b4e7777ddf2ef0ba59327dc Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Thu, 28 Nov 2024 14:14:02 -0500 Subject: [PATCH] remove extra line --- cluster-autoscaler/ca.patch | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cluster-autoscaler/ca.patch b/cluster-autoscaler/ca.patch index d9a9f44a2..ffcd20b5e 100644 --- a/cluster-autoscaler/ca.patch +++ b/cluster-autoscaler/ca.patch @@ -1,5 +1,5 @@ diff --git a/cluster-autoscaler/utils/kubernetes/listers.go b/cluster-autoscaler/utils/kubernetes/listers.go -index b9be94b6e..2586bbd50 100644 +index b9be94b6e..5efb40df2 100644 --- a/cluster-autoscaler/utils/kubernetes/listers.go +++ b/cluster-autoscaler/utils/kubernetes/listers.go @@ -17,10 +17,12 @@ limitations under the License. @@ -53,11 +53,8 @@ index b9be94b6e..2586bbd50 100644 // List returns all scheduled pods. func (lister *AllPodLister) List() ([]*apiv1.Pod, error) { var pods []*apiv1.Pod -@@ -229,9 +255,13 @@ func (lister *AllPodLister) List() ([]*apiv1.Pod, error) { - if err != nil { - return pods, err +@@ -231,7 +257,10 @@ func (lister *AllPodLister) List() ([]*apiv1.Pod, error) { } -+ for _, p := range allPods { if p.Status.Phase != apiv1.PodSucceeded && p.Status.Phase != apiv1.PodFailed { - pods = append(pods, p)