Skip to content
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

odo dev - should store information about currently forwarded ports. #5676

Closed
4 tasks
kadel opened this issue Apr 20, 2022 · 0 comments · Fixed by #5703
Closed
4 tasks

odo dev - should store information about currently forwarded ports. #5676

kadel opened this issue Apr 20, 2022 · 0 comments · Fixed by #5703
Assignees
Labels
kind/user-story An issue of user-story kind

Comments

@kadel
Copy link
Member

kadel commented Apr 20, 2022

User Story

  • As an odo developer
  • I want to be able to get information about what ports are currently forwarded
  • So that I can display that information to user

Currently, the only way to get information about currently forwarded ports is from odo dev output.
This can be problematic, as there are situation where we want to display this information to users like in odo describe component output (#5661)

Acceptance Criteria

  • odo dev should store information about currently forwarded ports in .odo/devstate.json. If the file doesn't exist it should create it.
  • see example for how the devstate.json structure should look like
  • as part of the "shutdown" procedure odo dev should remove forwardedPorts field from .odo/devstate.json
  • documentation

example

$ cat .odo/devstate.json
{
    "forwardedPorts": [
        {
        "containerName": "runtime",
        "containerPort": 8080,
        "localPort": 40001,
        "localAddress": "127.0.0.1"
        }
    ]

}

/kind user-story

@openshift-ci openshift-ci bot added the kind/user-story An issue of user-story kind label Apr 20, 2022
@kadel kadel mentioned this issue Apr 20, 2022
4 tasks
@kadel kadel moved this to Todo in odo v3-beta1 Apr 27, 2022
@feloy feloy moved this from Todo to In Progress in odo v3-beta1 Apr 28, 2022
@feloy feloy moved this from In Progress to For Review in odo v3-beta1 Apr 28, 2022
Repository owner moved this from For Review to Done in odo v3-beta1 May 5, 2022
@rm3l rm3l added the v3 label Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/user-story An issue of user-story kind
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants