mirror of https://github.com/k3s-io/k3s
Merge pull request #65049 from xujieasd/iptables-typo
Automatic merge from submit-queue. 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>. iptables proxier_test typo **What this PR does / why we need it**: The definition of `makeTestService` is ``` func makeTestService(namespace, name string, svcFunc func(*api.Service)) api.Service { ... } ``` but in function `TestClusterIPReject`, use makeTestService(svcPortName.Namespace, svcPortName.`Namespace`, func(svc *api.Service) should be makeTestService(svcPortName.Namespace, svcPortName.`Name`, func(svc *api.Service) I think it's a typo /area kube-proxy **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
3abba25160
|
@ -595,7 +595,7 @@ func TestClusterIPReject(t *testing.T) {
|
|||
}
|
||||
|
||||
makeServiceMap(fp,
|
||||
makeTestService(svcPortName.Namespace, svcPortName.Namespace, func(svc *api.Service) {
|
||||
makeTestService(svcPortName.Namespace, svcPortName.Name, func(svc *api.Service) {
|
||||
svc.Spec.ClusterIP = svcIP
|
||||
svc.Spec.Ports = []api.ServicePort{{
|
||||
Name: svcPortName.Port,
|
||||
|
|
Loading…
Reference in New Issue