Skip to content

Commit

Permalink
More manual changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorenc authored and dlorenc committed Dec 21, 2017
1 parent 0a749f9 commit 5661ba0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/localkube/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func StartProxyServer(lk LocalkubeServer) func() error {
if err != nil {
panic(err)
}
opts.SetConfig(config)

lk.SetExtraConfigForComponent("proxy", &config)

Expand Down
12 changes: 10 additions & 2 deletions pkg/localkube/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ func (lk LocalkubeServer) NewSchedulerServer() Server {
}

func StartSchedulerServer(lk LocalkubeServer) func() error {
config := componentconfig.KubeSchedulerConfiguration{}
config := &componentconfig.KubeSchedulerConfiguration{}
opts, err := scheduler.NewOptions()
if err != nil {
panic(err)
}
config, err = opts.ApplyDefaults(config)
if err != nil {
panic(err)
}

// master details
config.ClientConnection.KubeConfigFile = util.DefaultKubeConfigPath
Expand All @@ -38,7 +46,7 @@ func StartSchedulerServer(lk LocalkubeServer) func() error {
lk.SetExtraConfigForComponent("scheduler", &config)

return func() error {
s, err := scheduler.NewSchedulerServer(&config, "")
s, err := scheduler.NewSchedulerServer(config, "")
if err != nil {
return err
}
Expand Down

0 comments on commit 5661ba0

Please sign in to comment.