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 }