mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
Fix build error in integration test
This commit is contained in:
parent
a21cef0157
commit
cf203f1304
@ -136,7 +136,12 @@ func startComponents(manifestURL string) (apiServerURL string) {
|
||||
handler.delegate = mux
|
||||
|
||||
// Scheduler
|
||||
scheduler.New((&factory.ConfigFactory{cl}).Create()).Run()
|
||||
schedulerConfigFactory := &factory.ConfigFactory{cl}
|
||||
schedulerConfig, err := schedulerConfigFactory.Create()
|
||||
if err != nil {
|
||||
glog.Fatalf("Unable to construct scheduler config: %v", err)
|
||||
}
|
||||
scheduler.New(schedulerConfig).Run()
|
||||
|
||||
endpoints := service.NewEndpointController(cl)
|
||||
go util.Forever(func() { endpoints.SyncServiceEndpoints() }, time.Second*10)
|
||||
|
@ -64,6 +64,7 @@ func (factory *ConfigFactory) Create() (*scheduler.Config, error) {
|
||||
|
||||
r := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
|
||||
// TODO: remove this construction-time listing.
|
||||
nodes, err := factory.Client.ListMinions()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user