Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetHasRandomFully (0.24 sec)

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

    func NewIPv6Fake() *FakeIPTables {
    	f := NewFake()
    	f.protocol = iptables.ProtocolIPv6
    	return f
    }
    
    // SetHasRandomFully sets f's return value for HasRandomFully()
    func (f *FakeIPTables) SetHasRandomFully(can bool) *FakeIPTables {
    	f.hasRandomFully = can
    	return f
    }
    
    // EnsureChain is part of iptables.Interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/proxier_test.go

    			}
    		})
    	}
    }
    
    func TestMasqueradeRule(t *testing.T) {
    	for _, testcase := range []bool{false, true} {
    		_, ctx := ktesting.NewTestContext(t)
    		ipt := iptablestest.NewFake().SetHasRandomFully(testcase)
    		ipvs := ipvstest.NewFake()
    		ipset := ipsettest.NewFake(testIPSetVersion)
    		fp := NewFakeProxier(ctx, ipt, ipvs, ipset, nil, nil, v1.IPv4Protocol)
    		makeServiceMap(fp)
    		fp.syncProxyRules()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 186.8K bytes
    - Viewed (0)
  3. pkg/proxy/iptables/proxier_test.go

    	}
    }
    
    func TestMasqueradeRule(t *testing.T) {
    	for _, randomFully := range []bool{false, true} {
    		t.Run(fmt.Sprintf("randomFully %t", randomFully), func(t *testing.T) {
    			ipt := iptablestest.NewFake().SetHasRandomFully(randomFully)
    			fp := NewFakeProxier(ipt)
    			fp.syncProxyRules()
    
    			expectedFmt := dedent.Dedent(`
    				-A KUBE-POSTROUTING -m mark ! --mark 0x4000/0x4000 -j RETURN
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
Back to top