From d4496357a63443f2e747c3befd6b218d006dd335 Mon Sep 17 00:00:00 2001 From: agaro Date: Wed, 31 Jul 2024 17:23:45 -0400 Subject: [PATCH] test(UT): fixing getIngressWithHostname --- pkg/kube/structured/structured_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/kube/structured/structured_test.go b/pkg/kube/structured/structured_test.go index 7ecacb3..d4a8cdf 100644 --- a/pkg/kube/structured/structured_test.go +++ b/pkg/kube/structured/structured_test.go @@ -683,10 +683,8 @@ func getIngressWithHostname(t *testing.T, name, namespace, hostname string) runt if !ok { t.Errorf("'runtime.Object' could not be cast to '*appsv1.StatefulSet': %v", ingressInterface) } - ingress.Status.LoadBalancer.Ingress = []corev1.LoadBalancerIngress{ - { - Hostname: hostname, - }, + ingress.Status.LoadBalancer.Ingress = []networkingv1.IngressLoadBalancerIngress{ + {Hostname: hostname}, } return ingress }