code: func (o *Options) Validate() []error {
  	var errs []error
  
  	if err := validation.ValidateKubeSchedulerConfiguration(&o.ComponentConfig).ToAggregate(); err != nil {
  		errs = append(errs, err.Errors()...)
  	}
  	errs = append(errs, o.SecureServing.Validate()...)
  	errs = append(errs, o.CombinedInsecureServing.Validate()...)
  	errs = append(errs, o.Authentication.Validate()...)
  	errs = append(errs, o.Authorization.Validate()...)
  	errs = append(errs, o.Deprecated.Validate()...)
  
  	return errs
  }
docs: // Validate validates all the required options.