From 90971e0b34db9cc64601c99ec088291f86f7be07 Mon Sep 17 00:00:00 2001 From: Melisa Griffin Date: Fri, 18 Aug 2023 12:26:38 -0400 Subject: [PATCH] some cleanup --- control-plane/api/v1alpha1/ingressgateway_types.go | 1 - control-plane/api/v1alpha1/ingressgateway_types_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/control-plane/api/v1alpha1/ingressgateway_types.go b/control-plane/api/v1alpha1/ingressgateway_types.go index f59d7c5d72..c781ab8cc8 100644 --- a/control-plane/api/v1alpha1/ingressgateway_types.go +++ b/control-plane/api/v1alpha1/ingressgateway_types.go @@ -460,7 +460,6 @@ func (in *IngressServiceConfig) validate(path *field.Path) field.ErrorList { if in.MaxPendingRequests != nil && *in.MaxPendingRequests <= 0 { errs = append(errs, field.Invalid(path.Child("maxpendingrequests"), *in.MaxPendingRequests, "MaxPendingRequests must be > 0")) } - return errs } diff --git a/control-plane/api/v1alpha1/ingressgateway_types_test.go b/control-plane/api/v1alpha1/ingressgateway_types_test.go index d99eba7630..73b53f5fff 100644 --- a/control-plane/api/v1alpha1/ingressgateway_types_test.go +++ b/control-plane/api/v1alpha1/ingressgateway_types_test.go @@ -4,7 +4,6 @@ package v1alpha1 import ( - "k8s.io/utils/pointer" "testing" "time" @@ -14,6 +13,7 @@ import ( "github.com/stretchr/testify/require" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/utils/pointer" ) func TestIngressGateway_MatchesConsul(t *testing.T) {