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(LEP): Longhorn toolbox CLI #8428

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

c3y1huang
Copy link
Contributor

Which issue(s) this PR fixes:

Issue #7927

What this PR does / why we need it:

This LEP introduces the Longhorn Toolbox CLI, laying the foundation for upcoming development. The CLI aims to streamline manual Longhorn operations like troubleshooting and non-custom-resource operations.

Special notes for your reviewer:

None

Additional documentation or context

None

@c3y1huang c3y1huang self-assigned this Apr 24, 2024
@c3y1huang c3y1huang force-pushed the lep-feat-cli branch 14 times, most recently from c53ebfc to e4ff3e6 Compare April 24, 2024 07:16
@c3y1huang c3y1huang marked this pull request as ready for review April 24, 2024 07:25
@c3y1huang c3y1huang requested a review from a team as a code owner April 24, 2024 07:25
@c3y1huang c3y1huang force-pushed the lep-feat-cli branch 8 times, most recently from a4098ac to 9763da4 Compare April 25, 2024 01:29
@c3y1huang c3y1huang force-pushed the lep-feat-cli branch 2 times, most recently from 94c1fbe to e551883 Compare April 26, 2024 04:46
Copy link
Contributor

@james-munson james-munson left a comment

Choose a reason for hiding this comment

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

This looks really good. Just one small question.

enhancements/20240423-longhorn-toolbox-cli.md Show resolved Hide resolved
james-munson
james-munson previously approved these changes Apr 30, 2024
Copy link
Contributor

@james-munson james-munson left a comment

Choose a reason for hiding this comment

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

Looks good.

Copy link
Contributor

@ejweber ejweber left a comment

Choose a reason for hiding this comment

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

This is really in-depth and well-written. Thank you!

I have a few questions to discuss. Please find them in my review.

My major concern with implementing a CLI like this is that I want us to try to avoid duplicate effort wherever possible. (For example, if we can already get information easily with a kubectl command, we don't need a CLI command to do the same.) I was a bit worried when I first saw the get replica command, but I think it generally aims to retrieve additional information that we don't (and probably won't) put in the replica CRD. Overall, I think the LEP provides good examples of extra functionality that we can't achieve with it.

No real concerns from an implementation standpoint. It looks like we are using industry standard command line libraries, etc.

enhancements/20240423-longhorn-toolbox-cli.md Outdated Show resolved Hide resolved
enhancements/20240423-longhorn-toolbox-cli.md Outdated Show resolved Hide resolved
enhancements/20240423-longhorn-toolbox-cli.md Show resolved Hide resolved
enhancements/20240423-longhorn-toolbox-cli.md Show resolved Hide resolved
enhancements/20240423-longhorn-toolbox-cli.md Show resolved Hide resolved
enhancements/20240423-longhorn-toolbox-cli.md Show resolved Hide resolved
ejweber
ejweber previously approved these changes May 2, 2024
Copy link
Contributor

@ejweber ejweber 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 the answers to my questions. LGTM.

james-munson
james-munson previously approved these changes May 3, 2024
longhorn/longhorn-7927

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
@innobead
Copy link
Member

innobead commented May 7, 2024

cc @Vicente-Cheng @bk201 @WebberHuang1118 can check this from a support perspective

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants