Skip to content

Commit

Permalink
Increase port number range (#7054)
Browse files Browse the repository at this point in the history
  • Loading branch information
saedx1 authored Jan 21, 2025
1 parent 86c9752 commit ee71d4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/configs/parsing_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func ParsePortList(s string) ([]int, error) {
}

func parsePort(value string) (int, error) {
port, err := strconv.ParseInt(value, 10, 16)
port, err := strconv.ParseInt(value, 10, 32)
if err != nil {
return 0, fmt.Errorf("unable to parse port as integer: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletions internal/k8s/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@ func TestValidateNginxIngressAnnotations(t *testing.T) {

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

{
annotations: map[string]string{
"nginx.org/listen-ports-ssl": "443,8443",
"nginx.org/listen-ports-ssl": "443,8443,44315",
},
specServices: map[string]bool{},
isPlus: false,
Expand Down

0 comments on commit ee71d4a

Please sign in to comment.