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

feat: add name to envd envs describe #1201

Merged
merged 4 commits into from
Nov 16, 2022
Merged

Conversation

AlexXi19
Copy link
Member

Signed-off-by: AlexXi19 alex2001314jjj@gmail.com

#551

Show service name in ports list as specified by the issue.

Testing

Inspected envd envs describe for both jupyter notebook and R studio and verified that the names are correct.
image

image

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
pkg/app/env_describe.go Outdated Show resolved Hide resolved
pkg/types/envd.go Show resolved Hide resolved
Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! 🎉 👍

Some comments here

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
@AlexXi19
Copy link
Member Author

Addressed the comments and moved label name fetching logic to ListEnvPortBinding

pkg/envd/docker.go Outdated Show resolved Hide resolved
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for your contribution!

🎉 🎉 🎉

/cc @kemingy @VoVAllen

@muniu-bot muniu-bot bot requested review from kemingy and VoVAllen November 16, 2022 07:57
@gaocegege gaocegege merged commit 8c8c3f3 into tensorchord:main Nov 16, 2022
AlexXi19 added a commit to AlexXi19/envd that referenced this pull request Dec 12, 2022
* feat: add name to envd envs describe

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: move label name logic to ListEnvPortBinding

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: move label logic to NewPortBindingFromContainerJson

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: add name to envdserver port binding

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
gaocegege pushed a commit that referenced this pull request Dec 13, 2022
* feat: add name to `envd envs describe` (#1201)

* feat: add name to envd envs describe

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: move label name logic to ListEnvPortBinding

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: move label logic to NewPortBindingFromContainerJson

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: add name to envdserver port binding

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* feat: interactive cli option selection

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* feat: cli write file

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* feat: add style and finish file gen

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* refactor: clean up demo.go

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* refactor: refactor functions to interactive.go

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: change color, add file check, properly exit

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* feat: merge interactive cli logic with init command

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* fix: remove envd demo command

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* fix: linting

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: remove init tests for interactive cli

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: remove more init tests

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: indent to const and remove init tests

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

* chore: return error

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>

Signed-off-by: AlexXi19 <alex2001314jjj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

3 participants