Skip to content

Commit ee71d4a

Browse files
authored
Increase port number range (#7054)
1 parent 86c9752 commit ee71d4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/configs/parsing_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func ParsePortList(s string) ([]int, error) {
306306
}
307307

308308
func parsePort(value string) (int, error) {
309-
port, err := strconv.ParseInt(value, 10, 16)
309+
port, err := strconv.ParseInt(value, 10, 32)
310310
if err != nil {
311311
return 0, fmt.Errorf("unable to parse port as integer: %w", err)
312312
}

internal/k8s/validation_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,7 @@ func TestValidateNginxIngressAnnotations(t *testing.T) {
20142014

20152015
{
20162016
annotations: map[string]string{
2017-
"nginx.org/listen-ports": "80,8080,9090",
2017+
"nginx.org/listen-ports": "80,8080,9090,44313",
20182018
},
20192019
specServices: map[string]bool{},
20202020
isPlus: false,
@@ -2041,7 +2041,7 @@ func TestValidateNginxIngressAnnotations(t *testing.T) {
20412041

20422042
{
20432043
annotations: map[string]string{
2044-
"nginx.org/listen-ports-ssl": "443,8443",
2044+
"nginx.org/listen-ports-ssl": "443,8443,44315",
20452045
},
20462046
specServices: map[string]bool{},
20472047
isPlus: false,

0 commit comments

Comments
 (0)