mirror of https://github.com/k3s-io/k3s
Merge pull request #65860 from sttts/sttts-high-ports
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. controller-managers: allow high ports in secure serving validation Certain operating systems will select high port (>32768) when asked for a free port. This PR changes the validation to allow that. Like https://github.com/kubernetes/kubernetes/pull/65833, but for controller managers. ```release-note Allow kube- and cloud-controller-manager to listen on ports up to 65535. ```pull/8/head
commit
86b9a53226
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue