validate admission-control param

This commit is contained in:
hzxuzhonghu
2017-11-30 14:34:36 +08:00
parent 160270800f
commit 64a7c60e00
2 changed files with 16 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ func (options *ServerRunOptions) Validate() []error {
if errs := options.Audit.Validate(); len(errs) > 0 {
errors = append(errors, errs...)
}
if errs := options.Admission.Validate(); len(errs) > 0 {
errors = append(errors, errs...)
}
if errs := options.InsecureServing.Validate("insecure-port"); len(errs) > 0 {
errors = append(errors, errs...)
}