-
Notifications
You must be signed in to change notification settings - Fork 99
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
feat: add Untag()
to *oci.Store
#647
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #647 +/- ##
==========================================
+ Coverage 75.23% 75.32% +0.08%
==========================================
Files 59 59
Lines 5480 5499 +19
==========================================
+ Hits 4123 4142 +19
Misses 1001 1001
Partials 356 356 ☔ View full report in Codecov by Sentry. |
Hi @eiffel-fl, for a feature like this, we need more discussions and design. We encourage you to open an issue, so that everyone can discuss ideas and scenarios on the issue page. Best regards. |
6f7761e
to
88cb40a
Compare
0643b35
to
b31bb26
Compare
Hi, I think your original implementation was good (before you change the input from |
c6dcbf7
to
1213840
Compare
I polished the code and I added some tests, please let me know if further testing are needed (like a dedicated function). |
1213840
to
a763b1c
Compare
Can we follow the Conventional Commits to have the PR title start with "feat:" ? |
a763b1c
to
ee55d35
Compare
LGTM but I'm not a maintainer. For style consistency, can you change the PR title to |
ee55d35
to
f3249fa
Compare
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.
Sorry for the delayed review! Left a few suggestions regarding the unit tests. Let me know if anything is unclear.
f3249fa
to
67d9c47
Compare
Signed-off-by: Francis Laniel <[email protected]>
67d9c47
to
73b2766
Compare
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
Untag()
to *oci.Store
Untag()
to *oci.StoreUntag()
to *oci.Store
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
@eiffel-fl Merged! Thank you for your contribution! |
Thank you for the reviews and the merge! |
Hi!
oci.Store
offers the possibility to tag images but not to untag them.This is a problem when you want to remove images because you only want to untag a tag when several point to the same image (e.g.
docker rmi
and see inspektor-gadget/inspektor-gadget#2162 (review)).I will add proper testing if we agree that this addition is useful to the package.
Best regards and thank you in advance.