Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ChainExists (0.42 sec)

  1. pkg/util/iptables/testing/fake_test.go

    		t.Errorf("wrong return value from EnsureChain with existing chain")
    	}
    
    	// ChainExists
    	exists, err := fake.ChainExists(iptables.TableNAT, iptables.Chain("KUBE-TEST"))
    	if err != nil {
    		t.Errorf("unexpected error checking chain: %v", err)
    	} else if !exists {
    		t.Errorf("wrong return value from ChainExists with existing chain")
    	}
    	exists, err = fake.ChainExists(iptables.TableNAT, iptables.Chain("KUBE-TEST-NOT"))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  2. pkg/util/iptables/iptables.go

    		klog.V(2).InfoS("Reloading after iptables flush")
    		reloadFunc()
    	}
    }
    
    // ChainExists is part of Interface
    func (runner *runner) ChainExists(table Table, chain Chain) (bool, error) {
    	fullArgs := makeFullArgs(table, chain)
    
    	runner.mu.Lock()
    	defer runner.mu.Unlock()
    
    	trace := utiltrace.New("iptables ChainExists")
    	defer trace.LogIfLong(2 * time.Second)
    
    	_, err := runner.run(opListChain, fullArgs)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 28.6K bytes
    - Viewed (0)
Back to top