mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
fix scheduler port boundary to match detection
This commit is contained in:
parent
3994829cb0
commit
e8f7739e8d
@ -152,7 +152,7 @@ func (o *CombinedInsecureServingOptions) Validate() []error {
|
||||
|
||||
errors := []error{}
|
||||
|
||||
if o.BindPort <= 0 || o.BindPort > 32767 {
|
||||
if o.BindPort < 0 || o.BindPort > 32767 {
|
||||
errors = append(errors, fmt.Errorf("--port %v must be between 0 and 32767, inclusive. 0 for turning off insecure (HTTP) port", o.BindPort))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user