mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user