controller-manager: allow high ports in secure serving validation
This commit is contained in:
@@ -53,8 +53,8 @@ func (s *InsecureServingOptions) Validate() []error {
|
|||||||
|
|
||||||
errors := []error{}
|
errors := []error{}
|
||||||
|
|
||||||
if s.BindPort < 0 || s.BindPort > 32767 {
|
if s.BindPort < 0 || s.BindPort > 65335 {
|
||||||
errors = append(errors, fmt.Errorf("--insecure-port %v must be between 0 and 32767, inclusive. 0 for turning off insecure (HTTP) port", s.BindPort))
|
errors = append(errors, fmt.Errorf("--insecure-port %v must be between 0 and 65535, inclusive. 0 for turning off insecure (HTTP) port", s.BindPort))
|
||||||
}
|
}
|
||||||
|
|
||||||
return errors
|
return errors
|
||||||
|
Reference in New Issue
Block a user