-
Notifications
You must be signed in to change notification settings - Fork 336
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/#252 - kumactl get for single entities #667
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 see that the current implementation suggest that the commands will be
kumactl get resource dataplane dp-1
kumactl get resource mesh mesh-1
I'd rather have the more straightforward commands like
kumactl get dataplane dp-1
kumactl get mesh mesh-1
Sorry if that was your question on Slack and I misunderstood it.
Please start with 2/3 commands (mesh, dataplane, traffic-permission) and let's see what we can do to avoid code duplication.
And we have commands like get meshes, get data planes, can I just create a Is this fine because if I start with the |
Yes, I think the right approach for now is to create a separate sub commands |
@jakubdyszkiewicz I have added the implementation for |
I am not finding any possible abstraction between these two. I thought of abstracting out |
Hey, yes please - reuse the same function for printing table. As you can see there is a difference already, For tests I think we can reuse YAML file for input and just have a one parametrized test https://github.com/Kong/kuma/commit/b4e56abe2bb81ec65dd9136f8a6fee8548175a90 |
generic test
* resused printDataplanes for printing output Feature #252
* made changes in printdataplanes to support both get dataplane Feature #252
* added get fault injection and refractored printFaultInjection Feature #252
* formatted get-mesh yaml Feature #252
* added get-healthcheck command * changed types of printHealthCheck to support for single and multi resource Feature #252
* added get proxytemplate command * changed types of PrintProxyTemplate to support for single and multi resource Feature #252
* renamed get_fault_injection file Feature #252
* added get command to get single traffic-log * refractored printTrafficLog * added tests
* reverted back checking mesh type in apply cmd Feature #252
* commenting out mesh in test Feature #252
* Fixed failing tests Feature #252
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.
Thanks! That's awesome progress. I think there are still some resources left to be added
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.
almost there, can you add a changelog?
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.
It would help a lot with the review if the commits were more meaningful instead of same name for every one of them. Thanks!
* fixed review changes Feature #252
sure noted it |
Thank you for working on this! |
Summary
kumactl get command for single entities
Full changelog
Implemented command to get information about a single entity of Kuma for the following
Added tests
Updated tests for
kumactl apply
Issues resolved
Fix #252