15 lines
309 B
Go
Executable File
15 lines
309 B
Go
Executable File
package options
|
|
|
|
import (
|
|
utilerrors "k8s.io/apimachinery/pkg/util/errors"
|
|
)
|
|
|
|
// Validate checks Options and return a slice of found errs.
|
|
func (o *Options) Validate() error {
|
|
var errs []error
|
|
|
|
errs = append(errs, o.CustomMetricsAdapterServerOptions.Validate()...)
|
|
|
|
return utilerrors.NewAggregate(errs)
|
|
}
|