-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
podman artifact #25005
base: main
Are you sure you want to change the base?
podman artifact #25005
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: baude The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3cf0340
to
cc7bd96
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.
A quick CLI test and I found these. Still need to go through other parts but a few comments to start.
There's also a bunch of spacing issues in the docs, but they can be addressed later if needed.
ef9b936
to
5577dcf
Compare
pkg/libartifact/store/store.go
Outdated
// indexName is the name of the JSON file in root of the artifact store | ||
// that describes the store's contents | ||
indexName = "index.json" | ||
emptyStanza = []byte("{}") |
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.
This is the same as specV1.DescriptorEmptyJSON.Data
.
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.
yeah but i need a []byte representation so I was saving yet another JSON marshal. still worth it?
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.
That Data
field is already a JSON object with no fields in it, so you'd be good there.
the podman artifact verb is used to manage OCI artifacts. the following verbs were added to `podman artifact`: * add * inspect * ls * pull * push * rm Notable items with this PR: * all artifact commands and their output are subject to change. i.e. consider all of this tech preview * there is no way to add a file to an artifact that already exists in the store. you would need to delete and recreate the artifact. * all references to artifacts names should be fully qualified names in the form of repo/name:tag (i.e. quay.io/artifact/foobar:latest) * i understand that we will likely want to be able to attribute things like arch, etc to artifact files. this function is not available yet. Many thanks to Paul Holzinger for autocompletion PRs and review PRs that fixed issues early on. Also fix up some Args function to specify the correct number of args. Signed-off-by: Paul Holzinger <[email protected]> Signed-off-by: Brent Baude <[email protected]>
return nil, err | ||
} | ||
for _, l := range lrs { | ||
imgSrc, err := l.Reference.NewImageSource(ctx, as.SystemContext) |
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.
This needs to be Close()
d as soon as we're done with it.
Ephemeral COPR build failed. @containers/packit-build please check. |
the podman artifact verb is used to manage OCI artifacts. the following verbs were added to
podman artifact
:Notable items with this PR:
Many thanks to Paul Holzinger for autocompletion PRs and review PRs that fixed issues early on.
Also fix up some Args function to specify the correct number of args.
Does this PR introduce a user-facing change?