Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
66aa7c97
Commit
66aa7c97
authored
May 27, 2019
by
yanghaichao12
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete unused code in proxier_test
parent
da31c50d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
proxier_test.go
pkg/proxy/ipvs/proxier_test.go
+0
-18
No files found.
pkg/proxy/ipvs/proxier_test.go
View file @
66aa7c97
...
@@ -107,24 +107,6 @@ func (fake *fakeIPSetVersioner) GetVersion() (string, error) {
...
@@ -107,24 +107,6 @@ func (fake *fakeIPSetVersioner) GetVersion() (string, error) {
return
fake
.
version
,
fake
.
err
return
fake
.
version
,
fake
.
err
}
}
// New returns a new FakeSysctl
func
NewFakeSysctl
()
*
FakeSysctl
{
return
&
FakeSysctl
{}
}
type
FakeSysctl
struct
{
}
// GetSysctl returns the value for the specified sysctl setting
func
(
fakeSysctl
*
FakeSysctl
)
GetSysctl
(
sysctl
string
)
(
int
,
error
)
{
return
1
,
nil
}
// SetSysctl modifies the specified sysctl flag to the new value
func
(
fakeSysctl
*
FakeSysctl
)
SetSysctl
(
sysctl
string
,
newVal
int
)
error
{
return
nil
}
func
NewFakeProxier
(
ipt
utiliptables
.
Interface
,
ipvs
utilipvs
.
Interface
,
ipset
utilipset
.
Interface
,
nodeIPs
[]
net
.
IP
,
excludeCIDRs
[]
*
net
.
IPNet
)
*
Proxier
{
func
NewFakeProxier
(
ipt
utiliptables
.
Interface
,
ipvs
utilipvs
.
Interface
,
ipset
utilipset
.
Interface
,
nodeIPs
[]
net
.
IP
,
excludeCIDRs
[]
*
net
.
IPNet
)
*
Proxier
{
fcmd
:=
fakeexec
.
FakeCmd
{
fcmd
:=
fakeexec
.
FakeCmd
{
CombinedOutputScript
:
[]
fakeexec
.
FakeCombinedOutputAction
{
CombinedOutputScript
:
[]
fakeexec
.
FakeCombinedOutputAction
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment