Skip to content

Commit 37efa75

Browse files
Validate scheduler configuration from config file
Signed-off-by: Aldo Culquicondor <[email protected]>
1 parent cbe7c6e commit 37efa75

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)