containerd icon indicating copy to clipboard operation
containerd copied to clipboard

cri: add sandbox image name to annotations

Open ChengyuZhu6 opened this issue 1 year ago • 13 comments

We are working on a feature to enable the guest image pulling on the confidential-containers, and we would greatly appreciate containerd’s assistance in this matter. we hope containerd could share the pause image name and add it to the annotations so that we can pass it to the guest.

Fixes: #9418

ChengyuZhu6 avatar Nov 23 '23 08:11 ChengyuZhu6

Hi @ChengyuZhu6. 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.

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.

k8s-ci-robot avatar Nov 23 '23 08:11 k8s-ci-robot

It would be grateful if someone could review it. @egernst @crosbymichael @dcantah @dmcgowan

ChengyuZhu6 avatar Nov 29 '23 02:11 ChengyuZhu6

/ok-to-test /area cri

samuelkarp avatar Nov 29 '23 22:11 samuelkarp

Please squash into one commit. I can't see any reason to use two commits in this pr. Thanks

Fixed.

ChengyuZhu6 avatar Dec 19 '23 14:12 ChengyuZhu6

Side note: I don't have objections on this because it's just metadata. That CC runtime should not rely on this, since it's not an API. containerd doesn't guarantee to keep them in the future. CC runtime should consider to maintain their own pause image.

fuweid avatar Dec 19 '23 14:12 fuweid

Side note: I don't have objections on this because it's just metadata. That CC runtime should not rely on this, since it's not an API. containerd doesn't guarantee to keep them in the future. CC runtime should consider to maintain their own pause image.

Thank you for the note. Now I’m interested in the transfer service and its benefits for pulling images in the guest. We plan to use it until transfer service is ready in containerd 2.0.

ChengyuZhu6 avatar Dec 19 '23 15:12 ChengyuZhu6

We plan to use it until transfer service is ready in containerd 2.0.

If so, we can close this one.

fuweid avatar Dec 19 '23 15:12 fuweid

We plan to use it until transfer service is ready in containerd 2.0.

If so, we can close this one.

Please accept my apologies for any confusion. I noticed that containerd 2.0 is still in beta and some features (such as streaming) may not be fully ready yet. I would appreciate it if containerd could accept this patch, so that we can use the guest pull features on containerd 1.x for CC.

ChengyuZhu6 avatar Dec 19 '23 15:12 ChengyuZhu6

@ChengyuZhu6 I already LGTM :)

fuweid avatar Dec 20 '23 09:12 fuweid

/assign @mikebrow

dims avatar Jan 22 '24 16:01 dims

Hey... fair to pass the pod image annotation in for the cases where pause is being used on host...

Let's create a: // SandboxPauseImageName is the name of the contain image used to scope pod shared resources used by the pod's containers, if nil a pause container is not being used. SandboxImageName = "io.kubernetes.cri.podsandbox.image-name"

And only add that to the pod meta..

Hey @mikebrow , thanks for your review. I have rebased the PR and addressed your feedback.

ChengyuZhu6 avatar Feb 04 '24 01:02 ChengyuZhu6

@mikebrow Would you mind re-reviewing this PR? Thanks.

ChengyuZhu6 avatar Feb 28 '24 15:02 ChengyuZhu6

@mikebrow Could I bother you for a review again? Thanks.

ChengyuZhu6 avatar Mar 04 '24 14:03 ChengyuZhu6

Hey @mikebrow Would you mind for a review again? Thanks !

ChengyuZhu6 avatar Mar 26 '24 14:03 ChengyuZhu6

Friendly ping @mikebrow

ChengyuZhu6 avatar Mar 28 '24 15:03 ChengyuZhu6

rebased to main

ChengyuZhu6 avatar Apr 09 '24 06:04 ChengyuZhu6