Skip to content

Commit

Permalink
remove image utils pkg from ut (#288)
Browse files Browse the repository at this point in the history
remove image utils from ut
  • Loading branch information
ColdsteelRail authored Oct 8, 2024
1 parent 148e0af commit 4fa8b0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/controllers/collaset/collaset_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 4fa8b0e

Please sign in to comment.