Remove duplicate import

This commit is contained in:
Adrian Moisey 2024-04-22 14:48:55 +02:00
parent 422e9c4c4e
commit 5b60f4e2d7
No known key found for this signature in database
GPG key ID: 41AE4AE32747C7CF

View file

@ -37,7 +37,6 @@ import (
text_template "text/template" text_template "text/template"
networkingv1 "k8s.io/api/networking/v1" networkingv1 "k8s.io/api/networking/v1"
v1 "k8s.io/api/networking/v1"
"k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/util/sets"
"k8s.io/klog/v2" "k8s.io/klog/v2"
@ -1071,7 +1070,7 @@ func getIngressInformation(i, h, p, t interface{}) *ingressInformation {
return &ingressInformation{} return &ingressInformation{}
} }
ingressPathType, ok := t.(*v1.PathType) ingressPathType, ok := t.(*networkingv1.PathType)
if !ok { if !ok {
klog.Errorf("expected a '*v1.PathType' type but %T was returned", t) klog.Errorf("expected a '*v1.PathType' type but %T was returned", t)
} }