mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
update build and s/where/which
This commit is contained in:
parent
2acd0abd8c
commit
076007b25d
@ -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 where ipvs service address will bind to it.
|
// DefaultDummyDevice is the default dummy interface which ipvs service address will bind to it.
|
||||||
DefaultDummyDevice = "kube-ipvs0"
|
DefaultDummyDevice = "kube-ipvs0"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -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 where stores all endpoints IP:Port,IP for solving hairpin mode purpose.
|
// loopbackSet is the ipset which stores all endpoints IP:Port,IP for solving hairpin mode purpose.
|
||||||
loopbackSet *IPSet
|
loopbackSet *IPSet
|
||||||
// clusterIPSet is the ipset where stores all service ClusterIP:Port
|
// clusterIPSet is the ipset which stores all service ClusterIP:Port
|
||||||
clusterIPSet *IPSet
|
clusterIPSet *IPSet
|
||||||
// nodePortSetTCP is the bitmap:port type ipset where stores all TCP node port
|
// nodePortSetTCP is the bitmap:port type ipset which stores all TCP node port
|
||||||
nodePortSetTCP *IPSet
|
nodePortSetTCP *IPSet
|
||||||
// nodePortSetTCP is the bitmap:port type ipset where stores all UDP node port
|
// nodePortSetTCP is the bitmap:port type ipset which stores all UDP node port
|
||||||
nodePortSetUDP *IPSet
|
nodePortSetUDP *IPSet
|
||||||
// lbIngressLocalSet is the hash:ip type ipset where stores all service ip's with externaltrafficPolicy=local
|
// lbIngressLocalSet is the hash:ip type ipset which stores all service ip's with externaltrafficPolicy=local
|
||||||
lbIngressLocalSet *IPSet
|
lbIngressLocalSet *IPSet
|
||||||
// nodePortLocalSetTCP is the bitmap:port type ipset where stores all TCP nodeport's with externaltrafficPolicy=local
|
// nodePortLocalSetTCP is the bitmap:port type ipset which stores all TCP nodeport's with externaltrafficPolicy=local
|
||||||
nodePortLocalSetTCP *IPSet
|
nodePortLocalSetTCP *IPSet
|
||||||
// nodePortLocalSetUDP is the bitmap:port type ipset where stores all UDP nodeport's with externaltrafficPolicy=local
|
// nodePortLocalSetUDP is the bitmap:port type ipset which stores all UDP nodeport's with externaltrafficPolicy=local
|
||||||
nodePortLocalSetUDP *IPSet
|
nodePortLocalSetUDP *IPSet
|
||||||
// externalIPSet is the hash:ip,port type ipset where stores all service ExternalIP:Port
|
// externalIPSet is the hash:ip,port type ipset which stores all service ExternalIP:Port
|
||||||
externalIPSet *IPSet
|
externalIPSet *IPSet
|
||||||
// lbIngressSet is the hash:ip,port type ipset where stores all service load balancer ingress IP:Port.
|
// lbIngressSet is the hash:ip,port type ipset which stores all service load balancer ingress IP:Port.
|
||||||
lbIngressSet *IPSet
|
lbIngressSet *IPSet
|
||||||
// lbWhiteListIPSet is the hash:ip,port,ip type ipset where stores all service load balancer ingress IP:Port,sourceIP pair, any packets
|
// lbWhiteListIPSet is the hash:ip,port,ip type ipset which 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 where stores all service load balancer ingress IP:Port,sourceCIDR pair, any packets
|
// lbWhiteListIPSet is the hash:ip,port,net type ipset which 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 where nodeport works.
|
// Values are as a parameter to select the interfaces which 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.
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user