Skip to content

Commit

Permalink
fix: Remove the pkg/k8sutil/client.go and replace it with HAMi/pkg/ut…
Browse files Browse the repository at this point in the history
…il/client in pkg/scheduler/scheduler.go

Signed-off-by: Shouren Yang <yangshouren@gmail.com>
  • Loading branch information
Shouren committed Dec 5, 2024
1 parent 24fd039 commit 57fee3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.
43 changes: 0 additions & 43 deletions pkg/k8sutil/client.go

This file was deleted.

3 changes: 2 additions & 1 deletion pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/Project-HAMi/HAMi/pkg/scheduler/config"
"github.com/Project-HAMi/HAMi/pkg/scheduler/policy"
"github.com/Project-HAMi/HAMi/pkg/util"
"github.com/Project-HAMi/HAMi/pkg/util/client"

corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -125,7 +126,7 @@ func (s *Scheduler) onDelPod(obj interface{}) {
}

func (s *Scheduler) Start() {
kubeClient, err := k8sutil.NewClient()
kubeClient, err := client.NewClient()
check(err)
s.kubeClient = kubeClient
informerFactory := informers.NewSharedInformerFactoryWithOptions(s.kubeClient, time.Hour*1)
Expand Down

0 comments on commit 57fee3a

Please sign in to comment.