-
Notifications
You must be signed in to change notification settings - Fork 37
feat: opm package pruning #15
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
Conversation
|
This enhancement request is implemented in operator-framework/operator-registry#251 |
ecordell
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.
/approve
njhale
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 for adding this!
I just had one primary question:
| #### New Commands | ||
|
|
||
| A `filter` subcommand will be added to both the `index` and `registry` command | ||
| mimmicking the behavior of `rm` in all but one significant way. The `operators` |
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.
if it's a new subcommand, could it not use packages in both instances? Alternatively, the package list could be the positional parameters of the command, rather than a named parameter; e.g. opm index filter <bundle-img> <pkg-0> <pkg-1> ... <pkg-n>
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.
My only struggle with this idea is wanting consistency. For example, when you remove operators from an index by saying opm index rm --from-index <index-img> --operators <op1>,<op2> and it seems fair for a user to think prune would look something like opm index prune --from-index <index-img> --operators <op1>,<op2>.
It may be that packages is really most appropriate for all of opm (index|registry) (rm|prune) but I'm hesitant to do that for all of opm (index|registry) prune without consensus. WDYT @ecordell ?
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.
Also fits with this comment operator-framework/operator-registry#243 (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.
I like being consistent, though IMO the existing commands are probably not following typical UX conventions; e.g no primary positional argument, required options, etc.
|
/lgtm |
enhancements/opm-package-pruning.md
Outdated
| A `prune` subcommand will be added to both the `index` and `registry` command | ||
| mimmicking the behavior of `rm` in all but one significant way. The `operators` | ||
| flag (for `index`es) and `packages` flag (for `registry`es) will represent the | ||
| packages to be kept in the index or registry. |
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.
will these both be represented by a packages option? e.g. opm index prune --packages <pkgs> ... and opm registry prune --packages <pkgs> ...
Enhancement request to add `prune` subcommand to `opm`s `registry` and `index` commands.
njhale
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.
/lgtm
Enhancement request to add
prunesubcommand toopmsregistryandindexcommands.