-
Notifications
You must be signed in to change notification settings - Fork 185
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
pkg/oci: Do not trim repository prefix if default. #2401
Conversation
It was our intent to have similar UX as docker. Can't we just append the prefix to image remove if needed or the issue is coming from oras-go? |
I also see these two options:
|
No problem on
This is also my opinion, as we just want to hide the default registry to user.
|
c4c30ff
to
cb66e86
Compare
cb66e86
to
51ae18f
Compare
Actually my proposal was to make this on |
OK, but in this case we need a loop here while using the extractor would avoid this. |
…n CLI. Otherwise, it impedes image removing by only untagging them. A repository extractor was added on the command side to keep the behavior introduced by the fixed commit. Fixes: bd5578b ("oci: Use default registry for Inspektor Gadget") Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
That's why I proposed the second option:
|
I find this even more hacky. |
As I mentioned before, I think we shouldn't expose the default prefix outside of this module. It'll fix this immediate issue, but then all users of this will have to be aware of the default domain, so I prefer to keep the logic only on this module for now. |
51ae18f
to
b361084
Compare
Damn, I forgot to push the new version using only local variables. |
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. Thanks!
Thank you for the review! |
Otherwise, it impedes image removing by only untagging them.
Fixes: bd5578b ("oci: Use default registry for Inspektor Gadget")