Skip to content

Commit aabd8f9

Browse files
authored
Merge pull request kubernetes#77313 from bjhaid/cleanup_kube_proxy
Clean up kube-proxy.
2 parents 6f6890b + 109f1c4 commit aabd8f9

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

cmd/kube-proxy/app/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ go_test(
163163
],
164164
embed = [":go_default_library"],
165165
deps = [
166-
"//pkg/apis/core:go_default_library",
167166
"//pkg/proxy/apis/config:go_default_library",
168167
"//pkg/util/configz:go_default_library",
169168
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",

cmd/kube-proxy/app/server.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,9 @@ func (o *Options) runLoop() error {
329329
}()
330330

331331
for {
332-
select {
333-
case err := <-o.errCh:
334-
if err != nil {
335-
return err
336-
}
332+
err := <-o.errCh
333+
if err != nil {
334+
return err
337335
}
338336
}
339337
}

cmd/kube-proxy/app/server_others_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ import (
2929
func Test_getProxyMode(t *testing.T) {
3030
var cases = []struct {
3131
flag string
32-
annotationKey string
33-
annotationVal string
3432
iptablesVersion string
3533
ipsetVersion string
3634
kmods []string

cmd/kube-proxy/app/server_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,11 @@ import (
3333
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3434
"k8s.io/apimachinery/pkg/util/diff"
3535
componentbaseconfig "k8s.io/component-base/config"
36-
api "k8s.io/kubernetes/pkg/apis/core"
3736
kubeproxyconfig "k8s.io/kubernetes/pkg/proxy/apis/config"
3837
"k8s.io/kubernetes/pkg/util/configz"
3938
utilpointer "k8s.io/utils/pointer"
4039
)
4140

42-
type fakeNodeInterface struct {
43-
node api.Node
44-
}
45-
46-
func (fake *fakeNodeInterface) Get(hostname string, options metav1.GetOptions) (*api.Node, error) {
47-
return &fake.node, nil
48-
}
49-
5041
type fakeIPTablesVersioner struct {
5142
version string // what to return
5243
err error // what to return

0 commit comments

Comments
 (0)