Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ruleExists (0.08 sec)

  1. pkg/proxy/iptables/proxier_test.go

    			)
    
    			fp.syncProxyRules()
    
    			c, _ := ipt.Dump.GetChain(utiliptables.TableNAT, kubeServicesChain)
    			ruleExists := false
    			for _, r := range c.Rules {
    				if r.DestinationAddress != nil && r.DestinationAddress.Value == testCase.svcLBIP {
    					ruleExists = true
    				}
    			}
    			if ruleExists != testCase.expectedRule {
    				t.Errorf("unexpected rule for %s", testCase.svcLBIP)
    			}
    		})
    	}
    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