Bumping k8s dependencies to 1.13
This commit is contained in:
13
vendor/k8s.io/kubernetes/pkg/util/ipvs/ipvs.go
generated
vendored
13
vendor/k8s.io/kubernetes/pkg/util/ipvs/ipvs.go
generated
vendored
@@ -41,6 +41,8 @@ type Interface interface {
|
||||
GetRealServers(*VirtualServer) ([]*RealServer, error)
|
||||
// DeleteRealServer deletes the specified real server from the specified virtual server.
|
||||
DeleteRealServer(*VirtualServer, *RealServer) error
|
||||
// UpdateRealServer updates the specified real server from the specified virtual server.
|
||||
UpdateRealServer(*VirtualServer, *RealServer) error
|
||||
}
|
||||
|
||||
// VirtualServer is an user-oriented definition of an IPVS virtual server in its entirety.
|
||||
@@ -91,9 +93,11 @@ func (svc *VirtualServer) String() string {
|
||||
|
||||
// RealServer is an user-oriented definition of an IPVS real server in its entirety.
|
||||
type RealServer struct {
|
||||
Address net.IP
|
||||
Port uint16
|
||||
Weight int
|
||||
Address net.IP
|
||||
Port uint16
|
||||
Weight int
|
||||
ActiveConn int
|
||||
InactiveConn int
|
||||
}
|
||||
|
||||
func (rs *RealServer) String() string {
|
||||
@@ -104,6 +108,5 @@ func (rs *RealServer) String() string {
|
||||
// We don't use struct == since it doesn't work because of slice.
|
||||
func (rs *RealServer) Equal(other *RealServer) bool {
|
||||
return rs.Address.Equal(other.Address) &&
|
||||
rs.Port == other.Port &&
|
||||
rs.Weight == other.Weight
|
||||
rs.Port == other.Port
|
||||
}
|
||||
|
Reference in New Issue
Block a user