Skip to content

Commit

Permalink
More manual changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorenc committed Dec 19, 2017
1 parent 9e6bce4 commit 84a37e9
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 84a37e9

Please sign in to comment.