-
Notifications
You must be signed in to change notification settings - Fork 103
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
Refactoring of "get instances" CLI command #553
Conversation
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 think I am a bit confused around some parts of the PR as a lot seems like a dead code to me 🤔 either I am not understanding the purpose of this or we copy-pasted a lot from install?
) | ||
|
||
// Options defines configuration options for the install command | ||
type Options struct { |
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.
is this copy-paste error? How is skipInstance relevant to get instances? 🤔
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 wouldn't call it that. More good intensions to make parts of the CLI following same patterns/look alike.
The purpose of this is and was intended to bring the There is also the lack of testing in Overall, I am more interested in creating patterns within our CLI, like using the |
I'm all for making this more testable 👍 |
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.
Yeah, now it makes sense, when you removed the options that don't make sense for get instances and were just taken over from install.
Now one last copy-pasted line, if we remove that it's good to go :) YAY
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.
lgtm
What type of PR is this?
/component kudoctl
What this PR does / why we need it:
This PR refactors the
kubectl kudo get instances
command. We are moving away from thedynamicClient
for listing Instances and start using our own KUDO client similar to the install command.Which issue(s) this PR fixes:
Fixes #548
Special notes for your reviewer:
Does this PR introduce a user-facing change?: