-
Notifications
You must be signed in to change notification settings - Fork 6.6k
feat(cli): added support for filtering by group in app get-resource CLI command #25495
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
base: master
Are you sure you want to change the base?
Conversation
🔴 Preview Environment stopped on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this comment):
|
Signed-off-by: Andrew Block <[email protected]>
41420b7 to
2875378
Compare
| command.Flags().StringVar(&kind, "kind", "", "Kind of resource [REQUIRED]") | ||
| err := command.MarkFlagRequired("kind") | ||
| errors.CheckError(err) | ||
| command.Flags().StringVar(&group, "group", "", "Group") |
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.
| command.Flags().StringVar(&group, "group", "", "Group") | |
| command.Flags().StringVar(&group, "group", "", "Group of resource") |
nit
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.
@nitishfy I modeled it similar to the flags in the other subcommands to ensure alignment of the CLI output
nitishfy
left a comment
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.
Left a small comment otherwise LGTM!
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #25495 +/- ##
=========================================
Coverage ? 62.47%
=========================================
Files ? 351
Lines ? 49469
Branches ? 0
=========================================
Hits ? 30907
Misses ? 15603
Partials ? 2959 ☔ View full report in Codecov by Sentry. |
reggie-k
left a comment
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! Can you add some tests for this?
There arent any
Since the new logic that was added is included within the cobra command, there are no existing set of tests that target any of the CLI commands, so I am hesitant to take on establishing such an implementation for a fairly minor enhancement |
Yeah, for unit tests it is true, but we have a lot of existing e2e tests that invoke CLI. |
Resolves #25494