Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for removePodFromHostNSIpset (0.11 sec)

  1. cni/pkg/nodeagent/server.go

    	var errs []error
    
    	// Remove the hostside ipset entry first, and unconditionally - if later failures happen, we never
    	// want to leave stale entries
    	if err := removePodFromHostNSIpset(pod, &s.hostsideProbeIPSet); err != nil {
    		log.Errorf("failed to remove pod %s from host ipset, error was: %v", pod.Name, err)
    		errs = append(errs, err)
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Sep 25 20:54:34 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server_test.go

    		"foo-v4",
    		netip.MustParseAddr("3.3.3.3"),
    	).Return(nil)
    
    	fakeIPSetDeps.On("clearEntriesWithIP",
    		"foo-v4",
    		netip.MustParseAddr("2.2.2.2"),
    	).Return(nil)
    
    	err := removePodFromHostNSIpset(pod, &set)
    	assert.NoError(t, err)
    	fakeIPSetDeps.AssertExpectations(t)
    }
    
    func TestMeshDataplaneSyncHostIPSetsPrunesNothingIfNoExtras(t *testing.T) {
    	pod := buildConvincingPod(false)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top