diff --git a/internal/configs/parsing_helpers.go b/internal/configs/parsing_helpers.go index 5c31a5b1d..b66c2f4f9 100644 --- a/internal/configs/parsing_helpers.go +++ b/internal/configs/parsing_helpers.go @@ -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) } diff --git a/internal/k8s/validation_test.go b/internal/k8s/validation_test.go index 9ad437896..ed71883af 100644 --- a/internal/k8s/validation_test.go +++ b/internal/k8s/validation_test.go @@ -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, @@ -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,