Skip to content

Commit 8b35d05

Browse files
Merge pull request openstack-k8s-operators#194 from jpodivin/duplicatedimport
Removing duplicated import and adjusting references
2 parents ca2fff4 + 7763fb0 commit 8b35d05

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apis/network/v1beta1/common_webhook.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"context"
88
"fmt"
99

10-
"sigs.k8s.io/controller-runtime/pkg/client"
1110
goClient "sigs.k8s.io/controller-runtime/pkg/client"
1211

1312
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -38,11 +37,11 @@ const (
3837
)
3938

4039
func getNetConfig(
41-
_ client.Client,
40+
_ goClient.Client,
4241
obj metav1.Object,
4342
) (*NetConfig, error) {
4443
// check if NetConfig is available
45-
opts := &client.ListOptions{
44+
opts := &goClient.ListOptions{
4645
Namespace: obj.GetNamespace(),
4746
}
4847

@@ -62,11 +61,11 @@ func getNetConfig(
6261
}
6362

6463
func getIPSets(
65-
_ client.Client,
64+
_ goClient.Client,
6665
obj metav1.Object,
6766
) (*IPSetList, error) {
6867
// check if IPSet is available
69-
opts := &client.ListOptions{
68+
opts := &goClient.ListOptions{
7069
Namespace: obj.GetNamespace(),
7170
}
7271

0 commit comments

Comments
 (0)