Add annotations to task update request api#4647
Conversation
|
Hi @katiewasnothere. 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 Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
Build succeeded.
|
|
/ok-to-test |
b79c5a7 to
7c6543e
Compare
|
Updated based on local testing to actually pass the annotations in a shim request :P Will need to retest @mxpv |
|
Build succeeded.
|
|
@mxpv PTAL when you can and merge if it looks good :) |
|
Changes LGTM. This needs one more LGTM in order to be merged :) |
There was a problem hiding this comment.
I can update this. Really annotations are for arbitrary AND experimental resource constraint information. The goal is that we can pass in any resource information for use and for testing now, then if we determine there are specific resources or other fields that would be useful upstream or in some other way, we can make additional PRs to opencontainer's runtime spec to update WindowsResources.
7c6543e to
64e0e1b
Compare
|
Build succeeded.
|
Signed-off-by: Kathryn Baldauf <[email protected]>
64e0e1b to
95ba6e9
Compare
|
Build succeeded.
|
|
@AkihiroSuda PTAL when you can :) |
|
@mxpv and @AkihiroSuda is there any concern about compat issues with this? |
|
This looks okay to me. Adding a field to the proto shouldn't be a breaking change, and using the functional options approach on the task API with |
|
@dmcgowan PTAL |
|
@AkihiroSuda @estesp @dmcgowan is this ready to be merged? |
This PR is a companion to an update in cri-api that I made recently kubernetes/kubernetes#95741. This PR adds annotations to UpdateTaskRequest and UpdateTaskInfo so when the cri-api change is merged, containerd can use it and pass along to shims. While waiting for that PR, I'd like to get feedback here and hopefully merge this.
As mentioned in the above PR, the annotations field on task Update allows for experimentation with updating various resources or passing along update options.
Signed-off-by: Kathryn Baldauf [email protected]