diff --git a/hack/.golint_failures b/hack/.golint_failures index c2859341038..f4fa483f389 100644 --- a/hack/.golint_failures +++ b/hack/.golint_failures @@ -279,7 +279,6 @@ pkg/util/iptables pkg/util/iptables/testing pkg/util/labels pkg/util/mount -pkg/util/netsh/testing pkg/util/normalizer pkg/util/oom pkg/util/procfs diff --git a/pkg/util/netsh/testing/fake.go b/pkg/util/netsh/testing/fake.go index 0322aeb1ebb..19ca89888d7 100644 --- a/pkg/util/netsh/testing/fake.go +++ b/pkg/util/netsh/testing/fake.go @@ -22,15 +22,18 @@ import ( "k8s.io/kubernetes/pkg/util/netsh" ) -// no-op implementation of netsh Interface +// FakeNetsh is a no-op implementation of the netsh Interface type FakeNetsh struct { } +// NewFake returns a fakenetsh no-op implementation of the netsh Interface func NewFake() *FakeNetsh { return &FakeNetsh{} } +// EnsurePortProxyRule function implementing the netsh interface and always returns true and nil without any error func (*FakeNetsh) EnsurePortProxyRule(args []string) (bool, error) { + // Do Nothing return true, nil }