Skip to content

feat: Add CLI command that lists all works and workplacements associated with a resource request or promise #76

Description

@catmo-syntasso

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions