From 4fa8b0ef931b548f76a698ec8385b7aa1fbd5d73 Mon Sep 17 00:00:00 2001 From: hexin <574252631@qq.com> Date: Tue, 8 Oct 2024 17:22:50 +0800 Subject: [PATCH] remove image utils pkg from ut (#288) remove image utils from ut --- pkg/controllers/collaset/collaset_controller_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/controllers/collaset/collaset_controller_test.go b/pkg/controllers/collaset/collaset_controller_test.go index b4564ea4..214f7835 100644 --- a/pkg/controllers/collaset/collaset_controller_test.go +++ b/pkg/controllers/collaset/collaset_controller_test.go @@ -36,7 +36,6 @@ import ( "k8s.io/apimachinery/pkg/util/sets" "k8s.io/client-go/kubernetes/scheme" "k8s.io/client-go/util/retry" - imageutils "k8s.io/kubernetes/test/utils/image" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/envtest" logf "sigs.k8s.io/controller-runtime/pkg/log" @@ -3208,7 +3207,7 @@ var _ = Describe("collaset controller", func() { InjectPolicy: appsv1alpha1.AfterPrimaryContainer, Container: corev1.Container{ Name: "sidecar", - Image: imageutils.GetE2EImage(imageutils.Nginx), + Image: "nginx:v1", Command: []string{ "sleep", "2h", @@ -3306,7 +3305,7 @@ var _ = Describe("collaset controller", func() { InjectPolicy: appsv1alpha1.AfterPrimaryContainer, Container: corev1.Container{ Name: "sidecar", - Image: imageutils.GetE2EImage(imageutils.Nginx), + Image: "nginx:v1", Command: []string{ "sleep", "2h",