Skip to content

remotes/docker: Add Mounted and Exists push status#8330

Merged
estesp merged 1 commit intocontainerd:mainfrom
vvoland:remotes-docker-status-exists-mounted
Sep 13, 2023
Merged

remotes/docker: Add Mounted and Exists push status#8330
estesp merged 1 commit intocontainerd:mainfrom
vvoland:remotes-docker-status-exists-mounted

Conversation

@vvoland
Copy link
Copy Markdown
Contributor

@vvoland vvoland commented Mar 30, 2023

This makes it possible to check whether content didn't actually need to be pushed to the remote registry and was cross-repo mounted or already existed.

@k8s-ci-robot
Copy link
Copy Markdown

Hi @vvoland. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@vvoland
Copy link
Copy Markdown
Contributor Author

vvoland commented Mar 30, 2023

Windows test failure seems unrelated.

Comment thread remotes/docker/pusher.go Outdated
resp.Body.Close()
resp = nil
case http.StatusCreated:
mounted = true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Along the same lines as moby/moby#44963 (comment) (https://github.com/moby/moby/blob/0656059ae7ab1d0b14afd3bd5f4533f2f2083ff0/distribution/push_v2.go#L379), would it make sense for this to also include where it mounted from? (perhaps a string or ref pointer instead of just a bool? I am not a containerd maintainer though 🙇)

Copy link
Copy Markdown
Contributor Author

@vvoland vvoland Mar 31, 2023

Choose a reason for hiding this comment

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

Ah, yeah, good point. Will do it on Monday next week.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

This makes it possible to check whether content didn't actually need to
be pushed to the remote registry and was cross-repo mounted or already
existed.

Signed-off-by: Paweł Gronowski <[email protected]>
@vvoland vvoland force-pushed the remotes-docker-status-exists-mounted branch from 64191a0 to dfc7590 Compare April 7, 2023 08:38
@vvoland
Copy link
Copy Markdown
Contributor Author

vvoland commented Apr 13, 2023

/cc @dmcgowan

@k8s-ci-robot k8s-ci-robot requested a review from dmcgowan April 13, 2023 14:26
@vvoland
Copy link
Copy Markdown
Contributor Author

vvoland commented May 24, 2023

@thaJeztah @AkihiroSuda PTAL

@vvoland
Copy link
Copy Markdown
Contributor Author

vvoland commented Jul 17, 2023

Rebased and pushed changes suggested some time ago by @thaJeztah on Slack.

@tianon @dmcgowan PTAL 😊

@AkihiroSuda
Copy link
Copy Markdown
Member

/ok-to-test

@estesp estesp merged commit 25198a0 into containerd:main Sep 13, 2023
@chrishenzie chrishenzie added cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch ok-to-test

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants