Port-forward debug
endpoints only when running odo dev
with --debug
#6254
Labels
area/dev
Issues or PRs related to `odo dev`
kind/feature
Categorizes issue as a feature request. For PRs, that means that the PR is the implementation
Milestone
/kind feature
/area dev
Which functionality do you think we should add?
I think we should port-forward
debug
endpoints only when runningodo dev --debug
.As discussed in #5988 (comment), we should have a way to identify Debug endpoints.
Why is this needed?
At this time, when running
odo dev
against a Devfile with a Debug endpoint, all endpoints are port-forwarded, including the debug endpoint.But when trying (intentionally or not) to reach the corresponding local port, we might get an error because the container may not be listening on the debug port (because we are not running the debug command); as a consequence, port-forwarding is restarted.
Worse, if running
odo dev --random-ports
, new local random ports get generated.Related: devfile/registry#122 (comment)
The text was updated successfully, but these errors were encountered: