Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DeleteInpodRules (0.08 sec)

  1. cni/pkg/nodeagent/net.go

    	if !isDelete {
    		if openNetns != nil {
    			// pod is removed from the mesh, but is still running. remove iptables rules
    			log.Debugf("calling DeleteInpodRules")
    			if err := s.netnsRunner(openNetns, func() error { return s.podIptables.DeleteInpodRules() }); err != nil {
    				return fmt.Errorf("failed to delete inpod rules: %w", err)
    			}
    		} else {
    			log.Warn("pod netns already gone, not deleting inpod rules")
    		}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 21 16:48:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. cni/pkg/iptables/iptables_e2e_test.go

    	assert.NoError(t, iptConfigurator.CreateInpodRules(scopes.CNIAgent, probeSNATipv4, probeSNATipv6, false))
    
    	t.Log("starting cleanup")
    	// Cleanup, should work
    	assert.NoError(t, iptConfigurator.DeleteInpodRules())
    	validateIptablesClean(t)
    
    	t.Log("second run")
    	// Add again, should still work
    	assert.NoError(t, iptConfigurator.CreateInpodRules(scopes.CNIAgent, probeSNATipv4, probeSNATipv6, false))
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top