You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The external library is not even needed for such a simple thing. Passing 0 as the port number instructs the kernel to give some random free port. It will work in this case too, btw. it's what the proposed library does under the hood (but the library ensures only that this port is free for the localhost address, which may be or not a problem). I suggest copying and adjusting a helper function for our use case
Problem statement
Using a concrete, default
nodePort
:kubernetes-testing-framework/pkg/clusters/addons/kong/addon.go
Line 540 in 238e12e
Proposed solution
Use something like
github.com/phayes/freeport
which allows finding a free port and use that in tests.The text was updated successfully, but these errors were encountered: