mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #84815 from alculquicondor/fix/config-validation
Validate scheduler configuration from config file
This commit is contained in:
commit
6f08d42dec
@ -174,6 +174,9 @@ func (o *Options) ApplyTo(c *schedulerappconfig.Config) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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
|
// 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
|
// none of the deprecated flags in o.Deprecated are taken into consideration. This is the old
|
||||||
|
Loading…
Reference in New Issue
Block a user