chore: pkg imported more than once (#5779)

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guangwu
2023-06-25 16:13:34 +08:00
committed by GitHub
parent 903a43b990
commit 5304a1234c
2 changed files with 3 additions and 5 deletions

View File

@@ -26,7 +26,6 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/diff"
"k8s.io/client-go/informers"
kubeinformers "k8s.io/client-go/informers"
k8sfake "k8s.io/client-go/kubernetes/fake"
core "k8s.io/client-go/testing"
@@ -134,7 +133,7 @@ func checkAction(expected, actual core.Action, t *testing.T) {
}
}
func (f *fixture) newController() (*JobController, informers.SharedInformerFactory) {
func (f *fixture) newController() (*JobController, kubeinformers.SharedInformerFactory) {
f.kubeclient = k8sfake.NewSimpleClientset(f.kubeobjects...)
k8sI := kubeinformers.NewSharedInformerFactory(f.kubeclient, noResyncPeriodFunc())