-
Notifications
You must be signed in to change notification settings - Fork 40k
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
dockershim: Return Labels as Info in ImageStatus. #58036
dockershim: Return Labels as Info in ImageStatus. #58036
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
/ok-to-test |
@shlevy Please review and sign the CLA: #58036 (comment) |
5ddd34c
to
65d7d71
Compare
@cblecker I am waiting on my employer's guidelines for signing as an individual or as a corporation |
OK, the process is started by my employer and the CLA should be signed within a week or so. In the mean time, though, if this work is desirable there's more work I'd need to do for the other CRI server implementations, so if possible a high level review (taking into account my "notes for reviewer") would be appreciated. I understand if everything needs to wait for the CLA though! |
/unassign |
OK, CLA finally came through. Rebasing now. |
/retest |
65d7d71
to
839b861
Compare
@cblecker How do I get the CLA check to run again? |
@shlevy The CLA check runs whenever the PR is updated. It's still reporting that you don't have a signed CLA. You may wish to check the top comment one more time to confirm you've followed all the needed steps. |
839b861
to
0f10fea
Compare
132489d
to
1609490
Compare
c6ddc74 added an Info field to ImageStatusResponse when Verbose is true. This makes the image's Labels available in that field, rather than unconditionally returning an empty map.
1609490
to
48af739
Compare
OK, I think CLA is finally all covered 😅 |
Hmm, I don't really understand what's going on in that test failure, is that really related to this PR? |
/test pull-kubernetes-unit, flake #59426 |
/retest |
I'm okay with the change since it's gated by "verbose". /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shlevy, yujuhong 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 |
@yujuhong Any thoughts on this?
|
Automatic merge from submit-queue (batch tested with PRs 58171, 58036, 60540). If you want to cherry-pick this change to another branch, please follow the instructions here. |
@Random-Liu This feature is sorely needed by my use case: We use containers for blackboxing trusted algorithms or data processors basically. We store definitions of inputs, how they map to commandline arguments to the executable and what outputs the processor is expected to produce. It makes a lot of sense to have this metadata as image labels instead of files inside the image, since the metadata is only needed by the container scheduler and not by the container runtime. Having the metadata and image bundled together is very nice in terms of portability. |
@Random-Liu What would be the appropriate process for proposing adding this as an official field of the |
c6ddc74 added an Info field to
ImageStatusResponse when Verbose is true. This makes the image's
Labels available in that field, rather than unconditionally returning
an empty map.
What this PR does / why we need it:
This PR exposes an image's
Labels
through the CRI. In particular, I want this so I can write anImageService
wrapper that delegates all operations to a realImageService
but also, when the rightLabels
, ensures any needed nix store paths are present on the system when an image is pulled, enabling users to use nix for package distribution while still using containers for isolation and kubernetes for orchestration. In general, though, this should be useful for anything that wants to know about an image'sLabels
Special notes for your reviewer:
I'd prefer to put this change into the
Image
protobuf type instead of putting it intoInfo
(gated byVerbose
or not, available in other requests likeListImages
or not), but that would be a change to the protocol and it seemsInfo
was introduced exactly for this purpose. If it's acceptable to put this intoImage
, I'll rework this.If this change is acceptable, I will also do the work for
cri-o
,rktlet
,frakti
, andcri-containerd
where applicable.I have started the process for my employer to sign on to the CLA. I don't have reason to expect it to take long, but because there is more work to do if this change is desired I'd prefer if we can start review before that is completed.
Release note: