Unverified Commit 7a2bc5c4 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #64495 from hanxiaoshuai/fix0530

Automatic merge from submit-queue (batch tested with PRs 64338, 64219, 64486, 64495, 64347). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. remove unused parameter in func buildFakeProxier **What this PR does / why we need it**: remove unused parameter in func buildFakeProxier **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 4df4a607 9d944d30
......@@ -805,7 +805,7 @@ func TestLoadBalancer(t *testing.T) {
func TestOnlyLocalNodePorts(t *testing.T) {
nodeIP := net.ParseIP("100.101.102.103")
ipt, fp := buildFakeProxier([]net.IP{nodeIP})
ipt, fp := buildFakeProxier()
svcIP := "10.20.30.41"
svcPort := 80
......@@ -889,8 +889,7 @@ func TestOnlyLocalNodePorts(t *testing.T) {
checkIptables(t, ipt, epIpt)
}
func TestLoadBalanceSourceRanges(t *testing.T) {
nodeIP := net.ParseIP("100.101.102.103")
ipt, fp := buildFakeProxier([]net.IP{nodeIP})
ipt, fp := buildFakeProxier()
svcIP := "10.20.30.41"
svcPort := 80
......@@ -988,7 +987,7 @@ func TestLoadBalanceSourceRanges(t *testing.T) {
}
func TestAcceptIPVSTraffic(t *testing.T) {
ipt, fp := buildFakeProxier(nil)
ipt, fp := buildFakeProxier()
ingressIP := "1.2.3.4"
externalIP := []string{"5.6.7.8"}
......@@ -1053,7 +1052,7 @@ func TestAcceptIPVSTraffic(t *testing.T) {
}
func TestOnlyLocalLoadBalancing(t *testing.T) {
ipt, fp := buildFakeProxier(nil)
ipt, fp := buildFakeProxier()
svcIP := "10.20.30.41"
svcPort := 80
......@@ -2548,7 +2547,7 @@ func Test_cleanLegacyService(t *testing.T) {
}
}
func buildFakeProxier(nodeIP []net.IP) (*iptablestest.FakeIPTables, *Proxier) {
func buildFakeProxier() (*iptablestest.FakeIPTables, *Proxier) {
ipt := iptablestest.NewFake()
ipvs := ipvstest.NewFake()
ipset := ipsettest.NewFake(testIPSetVersion)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment