Merge pull request #84815 from alculquicondor/fix/config-validation

Validate scheduler configuration from config file
This commit is contained in:
Kubernetes Prow Robot 2019-11-05 22:19:18 -08:00 committed by GitHub
commit 6f08d42dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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