-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add Untag()
to oci.Store
#648
Comments
I think of a design question regarding this feature: If the given reference string is a digest, what should the behavior of |
Hi!
Maybe it could be better for implementation to have a digest as descriptor, err := ociStore.Resolve(ctx, tag)
if err != nil {
return nil, fmt.Errorf("resolving src: %w", err)
}
ociStore.Untag(ctx, tag) Also, it would avoid repeating the code as pointed in your comment. Best regards. |
Hi @eiffel-fl, We have discussed internally in our team, in general we like the idea of Here are a few things we would like your
Let us know if there are further concerns. If you want, our team can co-author on PR #647 to speed up progress. |
Hi!
Sure! I will polish everything, as I first wanted to have your opinion before writing "fully polished code"! Best regards. |
Closing as addressed in #647. |
Hi.
There is currently a way to tag OCI descriptors, but not to untag them.
This can cause problems when you want to remove container image.
Indeed, in the following scenario, we have two tags pointing to the same underlying descriptor, as shown by the digest:
In this case, we should not try to remove the image, as removing the descriptor will remove it for both image, but rather to untag one image:
To do so, I opened #647 but we should first discuss this here before going further with the PR.
If you want more details on my use case, I invite you to check inspektor-gadget/inspektor-gadget#2162.
Best regards.
The text was updated successfully, but these errors were encountered: