Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addPodToHostNSIpset (0.07 sec)

  1. cni/pkg/nodeagent/server_test.go

    		"foo-v4",
    		netip.MustParseAddr("2.2.2.2"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    	podIPs := []netip.Addr{netip.MustParseAddr("99.9.9.9"), netip.MustParseAddr("2.2.2.2")}
    	_, err := m.addPodToHostNSIpset(pod, podIPs)
    	assert.NoError(t, err)
    
    	fakeIPSetDeps.AssertExpectations(t)
    }
    
    func TestMeshDataplaneAddPodToHostNSIPSetsV6(t *testing.T) {
    	pod := buildConvincingPod(true)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server.go

    		} else {
    			addedIps, err := s.addPodToHostNSIpset(pod, podIPs)
    			if err != nil {
    				log.Errorf("pod %s has IP collision, pod will be skipped and will fail healthchecks", pod.Name, podIPs)
    			}
    			addedIPSnapshot = append(addedIPSnapshot, addedIps...)
    		}
    
    	}
    	return pruneHostIPset(sets.New(addedIPSnapshot...), &s.hostsideProbeIPSet)
    }
    
    // addPodToHostNSIpset:
    // 1. get pod manifest
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Sep 25 20:54:34 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top