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 CLI command that lists all works and workplacements associated with a resource request or promise #76

Open
catmo-syntasso opened this issue Feb 21, 2025 · 0 comments
Labels

Comments

@catmo-syntasso
Copy link
Member

When cleaning up a promise or resource, if there is a failure, it is hard to know which works and workplacements are associated with a given request.
A user can run scripts, or lots of manual commands to find them, but adding the CLI command makes that much easier. A user can then inspect those items for errors, or delete them, or whatever they need to debug their requests.

Done When

Given I have a promise installed on Kratix
When I run the appropriate cli command (kratix-cli get (works||workplacements) --promise=<promise-name> or something like that)
Then I see all the works||workplacements associated, when they were created (and maybe other useful stats? TBC)

Given I have a resource installed on Kratix
When I run the appropriate cli command (kratix-cli get (works||workplacements) --resource=<resource-name> or something like that)
Then I see all the works||workplacements associated, when they were created (and maybe other useful stats? TBC)

NB: happy to discuss if having a separate flag or just --object or something would be preferrable.

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

No branches or pull requests

1 participant