Convert() should accept the new conversion Context value

Allows Convert() to reuse the same conversions as ConvertToVersion
without being overly coupled to the version.
This commit is contained in:
Clayton Coleman
2016-07-04 16:13:27 -04:00
parent a7a7fd4631
commit 5f8366aac3
25 changed files with 37 additions and 35 deletions

View File

@@ -41,7 +41,7 @@ type SchedulerServer struct {
// NewSchedulerServer creates a new SchedulerServer with default parameters
func NewSchedulerServer() *SchedulerServer {
config := componentconfig.KubeSchedulerConfiguration{}
api.Scheme.Convert(&v1alpha1.KubeSchedulerConfiguration{}, &config)
api.Scheme.Convert(&v1alpha1.KubeSchedulerConfiguration{}, &config, nil)
config.LeaderElection.LeaderElect = true
s := SchedulerServer{
KubeSchedulerConfiguration: config,