controller-manager: allow high ports in secure serving validation

pull/8/head
Dr. Stefan Schimanski 2018-07-05 15:01:19 +02:00
parent 692f9bb7b1
commit 13f6db1d01
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ func (s *InsecureServingOptions) Validate() []error {
errors := []error{}
if s.BindPort < 0 || s.BindPort > 32767 {
errors = append(errors, fmt.Errorf("--insecure-port %v must be between 0 and 32767, inclusive. 0 for turning off insecure (HTTP) port", s.BindPort))
if s.BindPort < 0 || s.BindPort > 65335 {
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