-
Notifications
You must be signed in to change notification settings - Fork 191
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
append annotations instead of overwrite? #571
Comments
+1 on this. I would like to propose an amend command that would
|
@rchincha Will this functionally cover what you need? |
https://github.com/opencontainers/distribution-spec/blob/main/spec.md#pushing-manifests Note the two options that are possible. |
Amending manifests can have unintended consequences that can affect existing attached artifacts, associated tags, and associated manifest list / index.
|
Although we don't have a command like
|
A slight enhancement ...
(OR) this
|
Signatures or any other invariant will be invalidated since the image manifest itself is changing, which may be ok and would requiring re-signing etc. When we compose, extend or distribute images based off of other images, this is really the normal. |
If we decide to do this, a suggested command is oras manifest amend --annotation key=value --annotation key=value ... which is consistent with |
/cc @FeynmanZhou @yizha1 for inputs. |
There are more questions:
|
I think it's significant to support amend annotations to simplify the process above. The effects on the existing attached artifacts, associated tags, and associated manifest list / index are acceptable but should be explicitly informed to users in the documentation or somewhere.
The sample above only considered the case of appending new annotations. Should |
Just found this thread, I think it would be interesting indeed to have an easy way to add annotations on an existing image (not just via
With the current state of
Just sharing. |
@mathieu-benoit Thanks for sharing. You can actually pipeline commands into one line like below:
Also don't forget that the original manifest should be deleted via |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
A teammate shared this ticket with me and I wanted to share my thoughts on this ticket as it's pending requirements. As a user, my expectations for oras push are such that:
I would like the option to do the following things, both on
I think separately there may be value in an option to a command such as I do not believe, due to the complexities of deleting an existing manifest, that a I do believe some users want to call a command like
Though I think this still has too many edge cases because of manifest lists and multiple tags. |
oras push with annotations appears to assume a full update. Is there any way to perform an append to existing annotations?
The text was updated successfully, but these errors were encountered: