-
Notifications
You must be signed in to change notification settings - Fork 243
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
Allow users to define custom port-mappings for port forwarding [Kubernetes] #6704
Allow users to define custom port-mappings for port forwarding [Kubernetes] #6704
Conversation
✅ Deploy Preview for odo-docusaurus-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
a33e0dc
to
a3d667e
Compare
ffa7662
to
3cf0901
Compare
9212408
to
e7868e7
Compare
windows-integration-test/Windows-test failure is due to same random port returned twice, although I am not sure why. The seed used should've made sure we get a unique port, but it did not here. Running odo.exe with args [odo dev --debug --port-forward=35507:3000 --port-forward=35507:5858] and odo env: [ODO_LOG_LEVEL=4 ODO_TRACKING_CONSENT=no]
[odo] X There are following issues with values provided by --port-forward flag:
[odo] X values for --port-forward flag are invalid
[FAILED] Timed out after 360.000s.
Expected
<string>: - local port 35507 is used more than once, please use unique local ports
to contain substring
<string>: [Ctrl+c] - Exit |
e7868e7
to
4bfe926
Compare
Signed-off-by: Parthvi Vala <pvala@redhat.com>
Signed-off-by: Parthvi Vala <pvala@redhat.com>
Signed-off-by: Parthvi Vala <pvala@redhat.com>
…hen debugging Signed-off-by: Parthvi Vala <pvala@redhat.com>
Signed-off-by: Parthvi Vala <pvala@redhat.com> Remove the use of seed for randomzing Signed-off-by: Parthvi Vala <pvala@redhat.com>
7bd97ec
to
861a9f4
Compare
tests/helper/helper_http.go
Outdated
if !util.IsPortFree(int(startPort)) { | ||
return GetRandomFreePort() | ||
} |
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'm not sure IsPortFree is atomic here. You could just expect the port is free.
The random ports are in the range of the Ephemeral ports, in my machine it is:
$ sysctl net.ipv4.ip_local_port_range
net.ipv4.ip_local_port_range = 32768 60999
So we can consider ports below 32768 will be free.
Signed-off-by: Parthvi Vala <pvala@redhat.com>
861a9f4
to
69c994a
Compare
/lgtm |
Co-authored-by: Armel Soro <asoro@redhat.com>
[FAILED] in [AfterEach] - /go/odo_1/tests/helper/helper_dev.go:211 @ 04/06/23 11:22:15.369
Deleting project: cmd-dev-test1485ipw
Running oc with args [oc delete project cmd-dev-test1485ipw --wait=false] and odo env: []
[oc] project.project.openshift.io "cmd-dev-test1485ipw" deleted
Setting current dir to: /go/odo_1/tests/integration
Deleting dir: /tmp/2482955252
Deleting dir: /tmp/1006440071
<< Timeline
[FAILED] Timed out after 180.001s.
Expected process to exit. It did not.
In [AfterEach] at: /go/odo_1/tests/helper/helper_dev.go:211 @ 04/06/23 11:22:15.369
[FAIL] odo dev command tests when Starting a PostgreSQL service when creating local files and dir and running odo dev - with metadata.name [AfterEach] should correctly propagate changes to the container OpenShift Test failure. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/override Kubernetes-Integration-Tests/Kubernetes-Integration-Tests Flaky e2e tests
|
@feloy: Overrode contexts on behalf of feloy: Kubernetes-Integration-Tests/Kubernetes-Integration-Tests, OpenShift-Integration-tests/OpenShift-Integration-tests In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this:
/kind feature
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes part of #6479
PR acceptance criteria:
Unit test
Integration test [WIP]
Documentation [TBD]
How to test changes / Special notes to the reviewer:
odo dev --port-forward <localPort>:<containerPort> --port-forward <localPort>:<containerName>:<containerPort>