mirror of https://github.com/k3s-io/k3s
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 ```pull/8/head
commit
7a2bc5c47b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue