validate kube-proxy options

Signed-off-by: allencloud <allen.sun@daocloud.io>
Signed-off-by: Allen Sun <allen.sun@daocloud.io>
This commit is contained in:
allencloud
2017-07-18 14:12:57 +08:00
committed by Allen Sun
parent 50377e88ea
commit fd82adb012
7 changed files with 571 additions and 43 deletions

View File

@@ -203,6 +203,10 @@ func (o *Options) Validate(args []string) error {
return errors.New("no arguments are supported")
}
if errs := Validate(o.config); len(errs) != 0 {
return errs.ToAggregate()
}
return nil
}