validate kube-apiserver options

Kubernetes-commit: de406f83cfafc4033a935821a05cd8d8e5f50099
This commit is contained in:
m1093782566 2017-08-08 18:36:46 +08:00 committed by Kubernetes Publisher
parent a28089cff0
commit 31be6bf988
1 changed files with 12 additions and 0 deletions

View File

@ -77,3 +77,15 @@ func (o *RecommendedOptions) ApplyTo(config *server.Config) error {
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
}