Skip to content
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

Add type and annotations to artifact add #25170

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

baude
Copy link
Member

@baude baude commented Jan 30, 2025

podman artifact add now supports two new command line switches.

--type string that describes the type of artifact
--annotation string slice in the form of key=val

These new options allow users to "tag" information in on their artifacts for any number of purposes down the line

RUN-2446

Does this PR introduce a user-facing change?

`podman artifact add` has new options: `--type` and `--annotation`

@openshift-ci openshift-ci bot added release-note approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 30, 2025
@github-actions github-actions bot added the kind/api-change Change to remote API; merits scrutiny label Jan 30, 2025
@baude baude force-pushed the artifactoptions branch 3 times, most recently from 822d6be to c744dd7 Compare January 30, 2025 22:50
cmd/podman/artifact/add.go Outdated Show resolved Hide resolved

// ParseAnnotations takes a string slice of options, expected to be "key=val" and returns
// a string map where the map index is the key and points to the value
func ParseAnnotations(options []string) (map[string]string, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking BUT we really need to start to do better package names, this util/utils package madness is inside.
Point in case you having to rename the import to utils2 in the api code. That is just super ugly to read.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think that is a lovely tech debt item we could do ...

pkg/libartifact/store/store.go Outdated Show resolved Hide resolved
pkg/libartifact/store/store.go Outdated Show resolved Hide resolved
pkg/libartifact/store/store.go Outdated Show resolved Hide resolved
pkg/domain/entities/artifact.go Outdated Show resolved Hide resolved
Copy link
Member

@Honny1 Honny1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall I like changes. I have only minor comments.

pkg/api/handlers/libpod/manifests.go Outdated Show resolved Hide resolved
pkg/libartifact/store/store.go Outdated Show resolved Hide resolved
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

podman artifact add now supports two new command line switches.

--type string that describes the type of artifact
--annotation string slice in the form of key=val

These new options allow users to "tag" information in on their artifacts
for any number of purposes down the line

RUN-2446

Signed-off-by: Brent Baude <[email protected]>
@baude
Copy link
Member Author

baude commented Jan 31, 2025

related to and blocks #25179

Copy link
Member

@Honny1 Honny1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/LGTM

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 31, 2025
Copy link
Contributor

openshift-ci bot commented Jan 31, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude, Honny1, Luap99

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit c131c9d into containers:main Jan 31, 2025
80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/api-change Change to remote API; merits scrutiny lgtm Indicates that a PR is ready to be merged. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants