Merge pull request #80096 from ZP-AlwaysWin/dev05

Fix golint failure in pkg/util/netsh/testing/
This commit is contained in:
Kubernetes Prow Robot 2019-07-23 17:14:41 -07:00 committed by GitHub
commit eb6bcfb345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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
}