mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Manually adding fix for failing pull-kubernetes-typecheck tests which had dependency with this commit: 6186303580
This commit is contained in:
parent
76bf5dbdc8
commit
b23e637969
@ -129,6 +129,26 @@ func NewFakeProxier(syncPeriod time.Duration, minSyncPeriod time.Duration, hostn
|
|||||||
return proxier
|
return proxier
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getHcnMock(networkType string) *fakehcn.HcnMock {
|
||||||
|
var remoteSubnets []*remoteSubnetInfo
|
||||||
|
rs := &remoteSubnetInfo{
|
||||||
|
destinationPrefix: destinationPrefix,
|
||||||
|
isolationID: 4096,
|
||||||
|
providerAddress: providerAddress,
|
||||||
|
drMacAddress: macAddress,
|
||||||
|
}
|
||||||
|
remoteSubnets = append(remoteSubnets, rs)
|
||||||
|
hnsNetworkInfo := &hnsNetworkInfo{
|
||||||
|
id: strings.ToUpper(guid),
|
||||||
|
name: testNetwork,
|
||||||
|
networkType: networkType,
|
||||||
|
remoteSubnets: remoteSubnets,
|
||||||
|
}
|
||||||
|
hnsNetwork := newHnsNetwork(hnsNetworkInfo)
|
||||||
|
hcnMock := fakehcn.NewHcnMock(hnsNetwork)
|
||||||
|
return hcnMock
|
||||||
|
}
|
||||||
|
|
||||||
func TestCreateServiceVip(t *testing.T) {
|
func TestCreateServiceVip(t *testing.T) {
|
||||||
syncPeriod := 30 * time.Second
|
syncPeriod := 30 * time.Second
|
||||||
proxier := NewFakeProxier(syncPeriod, syncPeriod, "testhost", netutils.ParseIPSloppy("10.0.0.1"), NETWORK_TYPE_OVERLAY)
|
proxier := NewFakeProxier(syncPeriod, syncPeriod, "testhost", netutils.ParseIPSloppy("10.0.0.1"), NETWORK_TYPE_OVERLAY)
|
||||||
|
Loading…
Reference in New Issue
Block a user