apiserver clean code

This commit is contained in:
hzxuzhonghu
2018-03-02 17:15:02 +08:00
parent c6d0726df8
commit 0feecc376c
5 changed files with 28 additions and 42 deletions

View File

@@ -81,7 +81,7 @@ func NewInsecureServingOptions() *InsecureServingOptions {
}
}
func (s InsecureServingOptions) Validate(portArg string) []error {
func (s InsecureServingOptions) Validate() []error {
errors := []error{}
if s.BindPort < 0 || s.BindPort > 65535 {