Skip to content

Commit dbe7c92

Browse files
committed
Add alias of api/errors in endpointslice.go
1 parent 305377a commit dbe7c92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/network/endpointslice.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
v1 "k8s.io/api/core/v1"
2424
discoveryv1alpha1 "k8s.io/api/discovery/v1alpha1"
25-
"k8s.io/apimachinery/pkg/api/errors"
25+
apierrors "k8s.io/apimachinery/pkg/api/errors"
2626
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2727
"k8s.io/apimachinery/pkg/util/intstr"
2828
"k8s.io/apimachinery/pkg/util/wait"
@@ -383,7 +383,7 @@ func hasMatchingEndpointSlices(cs clientset.Interface, ns, svcName string, numEn
383383
func hasMatchingEndpoints(cs clientset.Interface, ns, svcName string, numIPs, numSubsets int) (*v1.Endpoints, bool) {
384384
endpoints, err := cs.CoreV1().Endpoints(ns).Get(svcName, metav1.GetOptions{})
385385
if err != nil {
386-
if errors.IsNotFound(err) {
386+
if apierrors.IsNotFound(err) {
387387
framework.Logf("Endpoints for %s/%s Service not found", ns, svcName)
388388
return nil, false
389389
}

0 commit comments

Comments
 (0)