@@ -862,7 +862,7 @@ func TestAdminResizeControlPlane(t *testing.T) {
862862 Return (healthyKubeAPIServerJSON (), nil ).
863863 AnyTimes ()
864864 k .EXPECT ().
865- KubeList (gomock .Any (), "Pod" , "openshift-kube-apiserver" ).
865+ KubeList (gomock .Any (), "Pod" , "openshift-kube-apiserver" , "app=openshift-kube-apiserver" ).
866866 Return (healthyKubeAPIServerPodsJSON (), nil ).
867867 AnyTimes ()
868868 k .EXPECT ().
@@ -1006,7 +1006,7 @@ func TestAdminResizeControlPlane(t *testing.T) {
10061006 Return (healthyKubeAPIServerJSON (), nil ).
10071007 AnyTimes ()
10081008 k .EXPECT ().
1009- KubeList (gomock .Any (), "Pod" , "openshift-kube-apiserver" ).
1009+ KubeList (gomock .Any (), "Pod" , "openshift-kube-apiserver" , "app=openshift-kube-apiserver" ).
10101010 Return (healthyKubeAPIServerPodsJSON (), nil ).
10111011 AnyTimes ()
10121012 k .EXPECT ().
@@ -1310,7 +1310,7 @@ func TestAdminResizeControlPlaneFailureDetails(t *testing.T) {
13101310 k .EXPECT ().CheckAPIServerReadyz (gomock .Any ()).Return (nil ).AnyTimes ()
13111311 k .EXPECT ().KubeGet (gomock .Any (), "ClusterOperator.config.openshift.io" , "" , "kube-apiserver" ).
13121312 Return (healthyKubeAPIServerJSON (), nil ).AnyTimes ()
1313- k .EXPECT ().KubeList (gomock .Any (), "Pod" , "openshift-kube-apiserver" ).
1313+ k .EXPECT ().KubeList (gomock .Any (), "Pod" , "openshift-kube-apiserver" , "app= openshift-kube-apiserver" ).
13141314 Return (healthyKubeAPIServerPodsJSON (), nil ).AnyTimes ()
13151315 k .EXPECT ().KubeGet (gomock .Any (), "ClusterOperator.config.openshift.io" , "" , "etcd" ).
13161316 Return (healthyEtcdJSON (), nil ).AnyTimes ()
@@ -1457,7 +1457,7 @@ func TestAdminResizeControlPlanePreflightFailureDetails(t *testing.T) {
14571457 k .EXPECT ().CheckAPIServerReadyz (gomock .Any ()).Return (nil ).AnyTimes ()
14581458 k .EXPECT ().KubeGet (gomock .Any (), "ClusterOperator.config.openshift.io" , "" , "kube-apiserver" ).
14591459 Return (healthyKubeAPIServerJSON (), nil ).AnyTimes ()
1460- k .EXPECT ().KubeList (gomock .Any (), "Pod" , "openshift-kube-apiserver" ).
1460+ k .EXPECT ().KubeList (gomock .Any (), "Pod" , "openshift-kube-apiserver" , "app= openshift-kube-apiserver" ).
14611461 Return (healthyKubeAPIServerPodsJSON (), nil ).AnyTimes ()
14621462 k .EXPECT ().KubeGet (gomock .Any (), "ClusterOperator.config.openshift.io" , "" , "etcd" ).
14631463 Return (healthyEtcdJSON (), nil ).AnyTimes ()
0 commit comments