File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ import (
1717)
1818
1919const (
20- DefaultProxyName = "default"
20+ DefaultProxyName = "default"
21+ MaxPort int32 = 65535
2122)
2223
2324// Infra defines managed infrastructure.
@@ -224,10 +225,10 @@ func (p *ProxyInfra) Validate() error {
224225 if len (listener .Ports [j ].Name ) == 0 {
225226 errs = append (errs , errors .New ("listener name field required" ))
226227 }
227- if listener .Ports [j ].ServicePort < 1 || listener .Ports [j ].ServicePort > 65353 {
228+ if listener .Ports [j ].ServicePort < 1 || listener .Ports [j ].ServicePort > MaxPort {
228229 errs = append (errs , errors .New ("listener service port must be a valid port number" ))
229230 }
230- if listener .Ports [j ].ContainerPort < 1 || listener .Ports [j ].ContainerPort > 65353 {
231+ if listener .Ports [j ].ContainerPort < 1 || listener .Ports [j ].ContainerPort > MaxPort {
231232 errs = append (errs , errors .New ("listener container port must be a valid port number" ))
232233 }
233234 }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ security updates: |
1010new features : |
1111
1212bug fixes : |
13-
13+ - Fixed Listener port limit typo 65353 -> 65535.
1414# Enhancements that improve performance.
1515performance improvements : |
1616
You can’t perform that action at this time.
0 commit comments