-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor pkg/agent/proxy/proxier_test.go #6420
Conversation
27aa9ef
to
9205888
Compare
pkg/agent/proxy/proxier_test.go
Outdated
loadBalancerIPs []net.IP, | ||
updatedLoadBalancerIPs []net.IP, | ||
isIPv6 bool) { | ||
func testServiceIngressIPsAndExternalIPsUpdate(t *testing.T, bindingProtocol binding.Protocol, isIPv6 bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why rename this test? I think that "ExternalIPs" would be included in the term "IngressIPs", just like "LoadbalancerIP".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about renaming it to testServiceExternalIPsUpdate
? I saw that externalIP
is used to represent LoadBalncerIP
and externalIP
in our code:
antrea/pkg/agent/route/route_linux.go
Line 1756 in 676fc98
func (c *Client) AddExternalIPRoute(externalIP net.IP) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed this because I thought that the term ingresIPs
is an alias of the term LoadBalancerIP
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually think that IngressIPs is less ambiguous in this case (given that ExternalIPs
is a specific kind of Service IP in itself), but I don't feel very strongly either way.
Refine test functions with multiple parameters and add some UDP Service tests. Signed-off-by: Hongliang Liu <lhongliang@vmware.com>
9205888
to
7f071f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @tnqn do you want to take a look as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/skip-all |
Refine test functions with multiple parameters and add some UDP Service tests.