File tree Expand file tree Collapse file tree 16 files changed +27
-27
lines changed Expand file tree Collapse file tree 16 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import (
35
35
"github.com/google/go-cmp/cmp"
36
36
"github.com/lithammer/dedent"
37
37
"github.com/stretchr/testify/assert"
38
+
38
39
v1 "k8s.io/api/core/v1"
39
40
discovery "k8s.io/api/discovery/v1"
40
41
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Original file line number Diff line number Diff line change @@ -24,10 +24,9 @@ import (
24
24
"reflect"
25
25
"testing"
26
26
27
- netutils "k8s.io/utils/net"
28
-
29
27
utilipvs "k8s.io/kubernetes/pkg/proxy/ipvs/util"
30
28
utilipvstest "k8s.io/kubernetes/pkg/proxy/ipvs/util/testing"
29
+ netutils "k8s.io/utils/net"
31
30
)
32
31
33
32
func Test_GracefulDeleteRS (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -20,14 +20,13 @@ limitations under the License.
20
20
package ipvs
21
21
22
22
import (
23
- "k8s.io/apimachinery/pkg/util/sets"
24
- utilversion "k8s.io/apimachinery/pkg/util/version"
25
- utilipset "k8s.io/kubernetes/pkg/proxy/ipvs/ipset"
26
-
27
23
"fmt"
28
24
"strings"
29
25
26
+ "k8s.io/apimachinery/pkg/util/sets"
27
+ utilversion "k8s.io/apimachinery/pkg/util/version"
30
28
"k8s.io/klog/v2"
29
+ utilipset "k8s.io/kubernetes/pkg/proxy/ipvs/ipset"
31
30
)
32
31
33
32
const (
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ import (
23
23
"fmt"
24
24
"net"
25
25
26
+ "github.com/vishvananda/netlink"
27
+ "golang.org/x/sys/unix"
28
+
26
29
"k8s.io/apimachinery/pkg/util/sets"
27
30
"k8s.io/klog/v2"
28
31
proxyutil "k8s.io/kubernetes/pkg/proxy/util"
29
32
netutils "k8s.io/utils/net"
30
-
31
- "github.com/vishvananda/netlink"
32
- "golang.org/x/sys/unix"
33
33
)
34
34
35
35
type netlinkHandle struct {
Original file line number Diff line number Diff line change @@ -33,10 +33,6 @@ import (
33
33
"sync/atomic"
34
34
"time"
35
35
36
- "k8s.io/klog/v2"
37
- utilexec "k8s.io/utils/exec"
38
- netutils "k8s.io/utils/net"
39
-
40
36
v1 "k8s.io/api/core/v1"
41
37
discovery "k8s.io/api/discovery/v1"
42
38
"k8s.io/apimachinery/pkg/types"
@@ -45,6 +41,7 @@ import (
45
41
"k8s.io/apimachinery/pkg/util/wait"
46
42
"k8s.io/client-go/tools/events"
47
43
utilsysctl "k8s.io/component-helpers/node/util/sysctl"
44
+ "k8s.io/klog/v2"
48
45
"k8s.io/kubernetes/pkg/proxy"
49
46
"k8s.io/kubernetes/pkg/proxy/conntrack"
50
47
"k8s.io/kubernetes/pkg/proxy/healthcheck"
@@ -56,6 +53,8 @@ import (
56
53
"k8s.io/kubernetes/pkg/util/async"
57
54
utiliptables "k8s.io/kubernetes/pkg/util/iptables"
58
55
utilkernel "k8s.io/kubernetes/pkg/util/kernel"
56
+ utilexec "k8s.io/utils/exec"
57
+ netutils "k8s.io/utils/net"
59
58
)
60
59
61
60
const (
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import (
31
31
"time"
32
32
33
33
"github.com/stretchr/testify/assert"
34
+
34
35
v1 "k8s.io/api/core/v1"
35
36
discovery "k8s.io/api/discovery/v1"
36
37
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ package testing
21
21
22
22
import (
23
23
"fmt"
24
- "k8s.io/utils/net"
25
24
26
25
"k8s.io/apimachinery/pkg/util/sets"
26
+ "k8s.io/utils/net"
27
27
)
28
28
29
29
// FakeNetlinkHandle mock implementation of proxy NetlinkHandle
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ import (
28
28
"time"
29
29
30
30
libipvs "github.com/moby/ipvs"
31
-
32
31
"golang.org/x/sys/unix"
32
+
33
33
"k8s.io/klog/v2"
34
34
)
35
35
Original file line number Diff line number Diff line change @@ -24,11 +24,10 @@ import (
24
24
"reflect"
25
25
"testing"
26
26
27
- netutils "k8s.io/utils/net"
28
-
29
27
libipvs "github.com/moby/ipvs"
30
-
31
28
"golang.org/x/sys/unix"
29
+
30
+ netutils "k8s.io/utils/net"
32
31
)
33
32
34
33
func Test_toVirtualServer (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import (
28
28
"crypto/sha256"
29
29
"encoding/base32"
30
30
"fmt"
31
- "golang.org/x/time/rate"
32
31
"net"
33
32
"os"
34
33
"os/exec"
@@ -39,7 +38,9 @@ import (
39
38
"sync/atomic"
40
39
"time"
41
40
42
- v1 "k8s.io/api/core/v1"
41
+ "golang.org/x/time/rate"
42
+
43
+ "k8s.io/api/core/v1"
43
44
discovery "k8s.io/api/discovery/v1"
44
45
"k8s.io/apimachinery/pkg/types"
45
46
"k8s.io/apimachinery/pkg/util/sets"
You can’t perform that action at this time.
0 commit comments