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

tag: Support tagging manifest list instead of resolving to images #3483

Merged

Conversation

flouthoc
Copy link
Collaborator

Following commit makes sure when buildah tag is invoked on a manifest
list, it tags the same manifest list instead of resolving to an image and
tagging it.

Depends-on: containers/common#747

@flouthoc flouthoc force-pushed the support-tagging-manifest-list branch 2 times, most recently from d936163 to 11e2bdc Compare August 27, 2021 07:45
@flouthoc
Copy link
Collaborator Author

/hold till containers/common#747 is merged and synced

@flouthoc flouthoc linked an issue Aug 27, 2021 that may be closed by this pull request
@flouthoc flouthoc force-pushed the support-tagging-manifest-list branch from 11e2bdc to af60968 Compare August 27, 2021 07:48
@giuseppe
Copy link
Member

was the file tags added by mistake?

@flouthoc
Copy link
Collaborator Author

flouthoc commented Aug 27, 2021

@giuseppe yes my bad i do that all the time, removed.

@giuseppe giuseppe requested a review from vrothberg August 27, 2021 07:49
Copy link
Member

@giuseppe giuseppe 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
Copy link
Contributor

openshift-ci bot commented Aug 27, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc, giuseppe

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

@flouthoc
Copy link
Collaborator Author

@vrothberg @giuseppe We have a dependency on containers/common#747

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

Nice work!

Please mark it as WIP and add a test case. Note that you can vendor in your commit from your c/common fork via go mod edit -replace github.com/containers/common=github.com/flouthoc/common@$commit.

@vrothberg
Copy link
Member

/hold

@TomSweeneyRedHat
Copy link
Member

Changes LGTM, but smoke test is smoking!

@flouthoc flouthoc force-pushed the support-tagging-manifest-list branch 5 times, most recently from cd59399 to c9b6e27 Compare August 30, 2021 05:25
@flouthoc
Copy link
Collaborator Author

@vrothberg PTAL

@flouthoc flouthoc requested review from vrothberg and giuseppe August 30, 2021 08:02
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

Thanks, tests LGTM!

Since we cannot merge a fork, we need to wait until it's merged in c/common.

@flouthoc flouthoc force-pushed the support-tagging-manifest-list branch from c9b6e27 to 049a931 Compare August 30, 2021 09:04
@flouthoc
Copy link
Collaborator Author

@vrothberg @giuseppe Vendor-ed the latest c/common@main. PTAL

go.mod Outdated Show resolved Hide resolved
Following commit makes sure when `buildah tag` is invoked on a manifest
list, it tags the same manifest list instead of resolving image and
tagiing it.

Signed-off-by: Aditya Rajan <[email protected]>
@flouthoc flouthoc force-pushed the support-tagging-manifest-list branch from 049a931 to 82eedac Compare August 30, 2021 09:15
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold

Thank you!

@flouthoc
Copy link
Collaborator Author

/hold cancel

@flouthoc
Copy link
Collaborator Author

my bad waiting for tests

@flouthoc
Copy link
Collaborator Author

/hold

@flouthoc
Copy link
Collaborator Author

/hold cancel

@flouthoc flouthoc requested a review from vrothberg August 30, 2021 12:20
@openshift-merge-robot openshift-merge-robot merged commit 516a727 into containers:main Aug 30, 2021
flouthoc added a commit to flouthoc/podman that referenced this pull request Oct 21, 2021
Following commit makes sure when buildah tag is invoked on a manifest
list, it tags the same manifest list instead of resolving to an image and
tagging it.

Port of: containers/buildah#3483

Signed-off-by: Aditya Rajan <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

buildah tag ruins manifest lists
5 participants