Skip to content

Commit

Permalink
Removing duplicated import and adjusting references
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Podivin <[email protected]>
  • Loading branch information
jpodivin committed Mar 7, 2024
1 parent 038a5ec commit 7763fb0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apis/network/v1beta1/common_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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(),
}

Expand All @@ -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(),
}

Expand Down

0 comments on commit 7763fb0

Please sign in to comment.