diff --git a/cmd/kube-scheduler/app/options/options.go b/cmd/kube-scheduler/app/options/options.go index e812fc90593..7c3fb6cc300 100644 --- a/cmd/kube-scheduler/app/options/options.go +++ b/cmd/kube-scheduler/app/options/options.go @@ -174,6 +174,9 @@ func (o *Options) ApplyTo(c *schedulerappconfig.Config) error { if err != nil { return err } + if err := validation.ValidateKubeSchedulerConfiguration(cfg).ToAggregate(); err != nil { + return err + } // use the loaded config file only, with the exception of --address and --port. This means that // none of the deprecated flags in o.Deprecated are taken into consideration. This is the old