From e09bd976f5d07aae3c69504afab2f3e7a5143605 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Mon, 15 Dec 2025 18:06:37 +0100 Subject: [PATCH] refactor(node_taint_test): inline p8 --- .../removepodsviolatingnodetaints/node_taint_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go index 4f3f717cc..bdf5b76be 100644 --- a/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go +++ b/pkg/framework/plugins/removepodsviolatingnodetaints/node_taint_test.go @@ -154,7 +154,6 @@ func withKubeSystemCriticalPod(pod *v1.Pod) { } func TestDeletePodsViolatingNodeTaints(t *testing.T) { - p8 := buildTestPod("p8", nodeName2, test.SetDSOwnerRef) p9 := buildTestPodWithNormalOwnerRef("p9", nodeName2, withLocalStorageVolume) p10 := buildTestPodWithNormalOwnerRef("p10", nodeName2, test.SetMirrorPodAnnotation) p11 := buildTestPodWithNormalOwnerRef("p11", nodeName2, nil) @@ -281,7 +280,7 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) { description: "Critical pods not tolerating node taint should not be evicted", pods: []*v1.Pod{ buildTestPodWithNormalOwnerRef("p7", nodeName2, withKubeSystemCriticalPod), - p8, + buildTestPod("p8", nodeName2, test.SetDSOwnerRef), p9, p10, }, @@ -294,7 +293,7 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) { description: "Critical pods except storage pods not tolerating node taint should not be evicted", pods: []*v1.Pod{ buildTestPodWithNormalOwnerRef("p7", nodeName2, withKubeSystemCriticalPod), - p8, + buildTestPod("p8", nodeName2, test.SetDSOwnerRef), p9, p10, }, @@ -308,7 +307,7 @@ func TestDeletePodsViolatingNodeTaints(t *testing.T) { description: "Critical and non critical pods, only non critical pods not tolerating node taint should be evicted", pods: []*v1.Pod{ buildTestPodWithNormalOwnerRef("p7", nodeName2, withKubeSystemCriticalPod), - p8, + buildTestPod("p8", nodeName2, test.SetDSOwnerRef), p10, p11, },