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
076007b2
Commit
076007b2
authored
Mar 31, 2018
by
Lion-Wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update build and s/where/which
parent
2acd0abd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
proxier.go
pkg/proxy/ipvs/proxier.go
+13
-13
BUILD
pkg/proxy/ipvs/testing/BUILD
+8
-2
No files found.
pkg/proxy/ipvs/proxier.go
View file @
076007b2
...
@@ -77,7 +77,7 @@ const (
...
@@ -77,7 +77,7 @@ const (
// DefaultScheduler is the default ipvs scheduler algorithm - round robin.
// DefaultScheduler is the default ipvs scheduler algorithm - round robin.
DefaultScheduler
=
"rr"
DefaultScheduler
=
"rr"
// DefaultDummyDevice is the default dummy interface wh
ere
ipvs service address will bind to it.
// DefaultDummyDevice is the default dummy interface wh
ich
ipvs service address will bind to it.
DefaultDummyDevice
=
"kube-ipvs0"
DefaultDummyDevice
=
"kube-ipvs0"
)
)
...
@@ -152,31 +152,31 @@ type Proxier struct {
...
@@ -152,31 +152,31 @@ type Proxier struct {
natRules
*
bytes
.
Buffer
natRules
*
bytes
.
Buffer
// Added as a member to the struct to allow injection for testing.
// Added as a member to the struct to allow injection for testing.
netlinkHandle
NetLinkHandle
netlinkHandle
NetLinkHandle
// loopbackSet is the ipset wh
ere
stores all endpoints IP:Port,IP for solving hairpin mode purpose.
// loopbackSet is the ipset wh
ich
stores all endpoints IP:Port,IP for solving hairpin mode purpose.
loopbackSet
*
IPSet
loopbackSet
*
IPSet
// clusterIPSet is the ipset wh
ere
stores all service ClusterIP:Port
// clusterIPSet is the ipset wh
ich
stores all service ClusterIP:Port
clusterIPSet
*
IPSet
clusterIPSet
*
IPSet
// nodePortSetTCP is the bitmap:port type ipset wh
ere
stores all TCP node port
// nodePortSetTCP is the bitmap:port type ipset wh
ich
stores all TCP node port
nodePortSetTCP
*
IPSet
nodePortSetTCP
*
IPSet
// nodePortSetTCP is the bitmap:port type ipset wh
ere
stores all UDP node port
// nodePortSetTCP is the bitmap:port type ipset wh
ich
stores all UDP node port
nodePortSetUDP
*
IPSet
nodePortSetUDP
*
IPSet
// lbIngressLocalSet is the hash:ip type ipset wh
ere
stores all service ip's with externaltrafficPolicy=local
// lbIngressLocalSet is the hash:ip type ipset wh
ich
stores all service ip's with externaltrafficPolicy=local
lbIngressLocalSet
*
IPSet
lbIngressLocalSet
*
IPSet
// nodePortLocalSetTCP is the bitmap:port type ipset wh
ere
stores all TCP nodeport's with externaltrafficPolicy=local
// nodePortLocalSetTCP is the bitmap:port type ipset wh
ich
stores all TCP nodeport's with externaltrafficPolicy=local
nodePortLocalSetTCP
*
IPSet
nodePortLocalSetTCP
*
IPSet
// nodePortLocalSetUDP is the bitmap:port type ipset wh
ere
stores all UDP nodeport's with externaltrafficPolicy=local
// nodePortLocalSetUDP is the bitmap:port type ipset wh
ich
stores all UDP nodeport's with externaltrafficPolicy=local
nodePortLocalSetUDP
*
IPSet
nodePortLocalSetUDP
*
IPSet
// externalIPSet is the hash:ip,port type ipset wh
ere
stores all service ExternalIP:Port
// externalIPSet is the hash:ip,port type ipset wh
ich
stores all service ExternalIP:Port
externalIPSet
*
IPSet
externalIPSet
*
IPSet
// lbIngressSet is the hash:ip,port type ipset wh
ere
stores all service load balancer ingress IP:Port.
// lbIngressSet is the hash:ip,port type ipset wh
ich
stores all service load balancer ingress IP:Port.
lbIngressSet
*
IPSet
lbIngressSet
*
IPSet
// lbWhiteListIPSet is the hash:ip,port,ip type ipset wh
ere
stores all service load balancer ingress IP:Port,sourceIP pair, any packets
// lbWhiteListIPSet is the hash:ip,port,ip type ipset wh
ich
stores all service load balancer ingress IP:Port,sourceIP pair, any packets
// with the source IP visit ingress IP:Port can pass through.
// with the source IP visit ingress IP:Port can pass through.
lbWhiteListIPSet
*
IPSet
lbWhiteListIPSet
*
IPSet
// lbWhiteListIPSet is the hash:ip,port,net type ipset wh
ere
stores all service load balancer ingress IP:Port,sourceCIDR pair, any packets
// lbWhiteListIPSet is the hash:ip,port,net type ipset wh
ich
stores all service load balancer ingress IP:Port,sourceCIDR pair, any packets
// from the source CIDR visit ingress IP:Port can pass through.
// from the source CIDR visit ingress IP:Port can pass through.
lbWhiteListCIDRSet
*
IPSet
lbWhiteListCIDRSet
*
IPSet
// Values are as a parameter to select the interfaces wh
ere
nodeport works.
// Values are as a parameter to select the interfaces wh
ich
nodeport works.
nodePortAddresses
[]
string
nodePortAddresses
[]
string
// networkInterfacer defines an interface for several net library functions.
// networkInterfacer defines an interface for several net library functions.
// Inject for test purpose.
// Inject for test purpose.
...
...
pkg/proxy/ipvs/testing/BUILD
View file @
076007b2
...
@@ -10,10 +10,16 @@ load(
...
@@ -10,10 +10,16 @@ load(
go_library(
go_library(
name = "go_default_library",
name = "go_default_library",
srcs = ["fake.go"],
srcs = [
"fake.go",
"util.go",
],
importpath = "k8s.io/kubernetes/pkg/proxy/ipvs/testing",
importpath = "k8s.io/kubernetes/pkg/proxy/ipvs/testing",
tags = ["automanaged"],
tags = ["automanaged"],
deps = ["//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library"],
deps = [
"//pkg/util/ipset:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
],
)
)
filegroup(
filegroup(
...
...
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