- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for EnsureDummyDevice (0.32 sec)
-
pkg/proxy/ipvs/testing/fake.go
} } // return error message if address is not found in slice h.localAddresses[devName] return fmt.Errorf("address: %s is not found in interface: %s", address, devName) } // EnsureDummyDevice is a mock implementation func (h *FakeNetlinkHandle) EnsureDummyDevice(devName string) (bool, error) { if len(devName) == 0 { return false, fmt.Errorf("device name can't be empty") } if _, ok := h.localAddresses[devName]; !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 5.5K bytes - Viewed (0) -
pkg/proxy/ipvs/proxier.go
proxier.natChains.Write("*nat") proxier.createAndLinkKubeChain() // make sure dummy interface exists in the system where ipvs Proxier will bind service address on it _, err := proxier.netlinkHandle.EnsureDummyDevice(defaultDummyDevice) if err != nil { proxier.logger.Error(err, "Failed to create dummy interface", "interface", defaultDummyDevice) return } // make sure ip sets exists in the system.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 28 15:51:23 UTC 2024 - 77.7K bytes - Viewed (0) -
pkg/proxy/ipvs/proxier_test.go
ipt := iptablestest.NewFake() ipvs := ipvstest.NewFake() ipset := ipsettest.NewFake(testIPSetVersion) proxier := NewFakeProxier(ctx, ipt, ipvs, ipset, nil, nil, v1.IPv4Protocol) proxier.netlinkHandle.EnsureDummyDevice(defaultDummyDevice) if testCases[i].oldVirtualServer != nil { if err := proxier.ipvs.AddVirtualServer(testCases[i].oldVirtualServer); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 01:31:57 UTC 2024 - 186.8K bytes - Viewed (0)