mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Validate scheduler configuration from config file
Signed-off-by: Aldo Culquicondor <acondor@google.com>
This commit is contained in:
parent
cbe7c6e3be
commit
37efa751c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user