mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 22:20:51 +00:00
Validate plugin config for KubeSchedulerConfiguration
Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
@@ -184,7 +184,7 @@ func (o *Options) ApplyTo(c *schedulerappconfig.Config) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := validation.ValidateKubeSchedulerConfiguration(cfg).ToAggregate(); err != nil {
|
||||
if err := validation.ValidateKubeSchedulerConfiguration(cfg); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -234,7 +234,7 @@ func emptySchedulerProfileConfig(profiles []kubeschedulerconfig.KubeSchedulerPro
|
||||
func (o *Options) Validate() []error {
|
||||
var errs []error
|
||||
|
||||
if err := validation.ValidateKubeSchedulerConfiguration(&o.ComponentConfig).ToAggregate(); err != nil {
|
||||
if err := validation.ValidateKubeSchedulerConfiguration(&o.ComponentConfig); err != nil {
|
||||
errs = append(errs, err.Errors()...)
|
||||
}
|
||||
errs = append(errs, o.SecureServing.Validate()...)
|
||||
|
Reference in New Issue
Block a user