Unverified Commit 86b9a532 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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. ```
parents 9d11a477 13f6db1d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment