validate kube-apiserver options
Kubernetes-commit: de406f83cfafc4033a935821a05cd8d8e5f50099
This commit is contained in:
parent
a28089cff0
commit
31be6bf988
|
@ -77,3 +77,15 @@ func (o *RecommendedOptions) ApplyTo(config *server.Config) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (o *RecommendedOptions) Validate() []error {
|
||||||
|
errors := []error{}
|
||||||
|
errors = append(errors, o.Etcd.Validate()...)
|
||||||
|
errors = append(errors, o.SecureServing.Validate()...)
|
||||||
|
errors = append(errors, o.Authentication.Validate()...)
|
||||||
|
errors = append(errors, o.Authorization.Validate()...)
|
||||||
|
errors = append(errors, o.Audit.Validate()...)
|
||||||
|
errors = append(errors, o.Features.Validate()...)
|
||||||
|
|
||||||
|
return errors
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue