Skip to content

Commit 6f08d42

Browse files
authored
Merge pull request kubernetes#84815 from alculquicondor/fix/config-validation
Validate scheduler configuration from config file
2 parents 41d9522 + 37efa75 commit 6f08d42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/kube-scheduler/app/options/options.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ func (o *Options) ApplyTo(c *schedulerappconfig.Config) error {
174174
if err != nil {
175175
return err
176176
}
177+
if err := validation.ValidateKubeSchedulerConfiguration(cfg).ToAggregate(); err != nil {
178+
return err
179+
}
177180

178181
// use the loaded config file only, with the exception of --address and --port. This means that
179182
// none of the deprecated flags in o.Deprecated are taken into consideration. This is the old

0 commit comments

Comments
 (0)