From 7763fb09aa58ef2278cd55c4c23a25120006fc1d Mon Sep 17 00:00:00 2001 From: Jiri Podivin Date: Thu, 7 Mar 2024 15:22:44 +0100 Subject: [PATCH] Removing duplicated import and adjusting references Signed-off-by: Jiri Podivin --- apis/network/v1beta1/common_webhook.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apis/network/v1beta1/common_webhook.go b/apis/network/v1beta1/common_webhook.go index ce7cb56b..38df7f4d 100644 --- a/apis/network/v1beta1/common_webhook.go +++ b/apis/network/v1beta1/common_webhook.go @@ -7,7 +7,6 @@ import ( "context" "fmt" - "sigs.k8s.io/controller-runtime/pkg/client" goClient "sigs.k8s.io/controller-runtime/pkg/client" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -38,11 +37,11 @@ const ( ) func getNetConfig( - _ client.Client, + _ goClient.Client, obj metav1.Object, ) (*NetConfig, error) { // check if NetConfig is available - opts := &client.ListOptions{ + opts := &goClient.ListOptions{ Namespace: obj.GetNamespace(), } @@ -62,11 +61,11 @@ func getNetConfig( } func getIPSets( - _ client.Client, + _ goClient.Client, obj metav1.Object, ) (*IPSetList, error) { // check if IPSet is available - opts := &client.ListOptions{ + opts := &goClient.ListOptions{ Namespace: obj.GetNamespace(), }