- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for addPodToHostNSIpset (0.2 sec)
-
cni/pkg/nodeagent/net.go
} else { err := addPodToHostNSIpset(pod, podIPs, &s.hostsideProbeIPSet) if err != nil { return err } addedIPSnapshot = append(addedIPSnapshot, podIPs...) } } return pruneHostIPset(sets.New(addedIPSnapshot...), &s.hostsideProbeIPSet) } // addPodToHostNSIpset: // 1. get pod manifest // 2. Get all pod ips (might be several, v6/v4)
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.2K bytes - Viewed (1) -
cni/pkg/nodeagent/net_test.go
"foo-v4", netip.MustParseAddr("2.2.2.2"), ipProto, podUID, true, ).Return(nil) podIPs := []netip.Addr{netip.MustParseAddr("99.9.9.9"), netip.MustParseAddr("2.2.2.2")} err := addPodToHostNSIpset(pod, podIPs, &set) assert.NoError(t, err) fakeIPSetDeps.AssertExpectations(t) } func TestAddPodToHostNSIPSetsV6(t *testing.T) { pod := buildConvincingPod(true)
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 16.4K bytes - Viewed (0)