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

fix remote untag #7840

Merged
merged 1 commit into from
Sep 30, 2020
Merged

Conversation

vrothberg
Copy link
Member

Fix the remote client to untag all tags of the specified image.
Instead of querying the image on the client side, support the
case where both, repo and tag, are empty and remove all tags.

Reuse the ABI implementation where possible. In retrospective,
the libpod untag endpoint should support a slice of strings to
batch remove tags rather than reaching out for each tag individually.

Enable the skipped test.

Signed-off-by: Valentin Rothberg [email protected]

Fix the remote client to untag all tags of the specified image.
Instead of querying the image on the client side, support the
case where both, repo and tag, are empty and remove all tags.

Reuse the ABI implementation where possible.  In retrospective,
the libpod untag endpoint should support a slice of strings to
batch remove tags rather than reaching out for each tag individually.

Enable the skipped test.

Signed-off-by: Valentin Rothberg <[email protected]>
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 30, 2020
@vrothberg
Copy link
Member Author

@rhatdan, that's an alternative approach which I prefer as it's getting the remote client closer to the local one. I wished the untag endpoint supported a slice of strings so we could have a 1:1 mapping to the local one.

@baude @jwhonce PTAL

@rhatdan
Copy link
Member

rhatdan commented Sep 30, 2020

I actually just finished something very similar, although I like yours better with using the ABI untag in the end.

@rhatdan
Copy link
Member

rhatdan commented Sep 30, 2020

LGTM

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-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@rhatdan
Copy link
Member

rhatdan commented Sep 30, 2020

/lgtm
/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 30, 2020
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 30, 2020
@vrothberg
Copy link
Member Author

vrothberg commented Sep 30, 2020

@edsantiago, let me you know if you want me to extend the system tests as well (I can open a PR after). I just checked and it seems we're not executing untag $image without additional tag args to remove all tags.

@edsantiago
Copy link
Member

extend the system tests as well

@vrothberg what kind of question is that????? 😉 It sounds like writing system tests isn't as approachable as I had hoped, so please reach out and let me know what stumbling blocks you encounter.

PS the flake you restarted is #7808. I'm going to have to disable that test because it seems to be hitting us very hard in CI.

@vrothberg
Copy link
Member Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 30, 2020
@openshift-merge-robot openshift-merge-robot merged commit 4d57313 into containers:master Sep 30, 2020
@vrothberg vrothberg deleted the remote-untag branch September 30, 2020 12:59
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants