✨ Add command to delete an existing olmv1 catalog#219
✨ Add command to delete an existing olmv1 catalog#219LalatenduMohanty merged 1 commit intooperator-framework:mainfrom
Conversation
d0025b9 to
f64fc36
Compare
f64fc36 to
85a9c09
Compare
85a9c09 to
d30d85c
Compare
2490933 to
fde6841
Compare
|
Currently the command is And I think is too long. I would love it to be as WDYT? |
|
I am wondering if we should add an flag |
Your idea to change the type to be a flag on the command makes the overall command longer. Overall I think we should continue with the syntax we agreed on and used so far. If you feel strongly about this, maybe olmv0 deprecation might be a good occasion to propose a new syntax idea? As part of olmv0 deprecation we might modify the current command 'prefix' - `operator olmv1'. Hope that's fair. |
This PR already includes |
Signed-off-by: Artur Zych <5843875+azych@users.noreply.github.com>
fde6841 to
27efe6e
Compare
@LalatenduMohanty do you mean treating |
I did not see the --all when I am testing the CLI, my bad. Let me check again. |
This adds
deletecommand that enables deleting either a single or all existing catalogs (ClusterCatalog) from the cluster.Signature:
Delete either a single or all of the existing catalogs Usage: operator olmv1 delete catalog [catalog_name] [flags] Aliases: catalog, catalogs [catalog_name] Flags: --all delete all catalogs -h, --help help for catalogExample walkthrough:
Additionally, does a light refactor of the old helpers, especially the
waitForDeletion, which does not accept variable number of input objects anymore.Benefits of this are:
There is some overlap with #218 - ie. test helpers, which will be cleaned up once that has been merged- donePart of operator-framework/operator-controller#1815 ; operator-framework/operator-controller#1770