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
Make CRI v1 the default and allow a fallback to v1alpha2 #106501
Conversation
This patch makes the CRI `v1` API the new project-wide default version. To allow backwards compatibility, a fallback to `v1alpha2` has been added as well. This fallback can either used by automatically determined by the kubelet. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
See kubernetes#106006 (comment) Co-Authored-By: Jordan Liggitt <liggitt@google.com>
/sig node |
/approve Thanks for pulling in the equality unit test check will defer the node API approval to node folks |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ehashman, liggitt, mrunalp 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 |
/lgtm |
/milestone v1.23 |
flake #106367 /test pull-kubernetes-node-e2e-containerd |
/skip |
@ehashman: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
We should not touch the dockershim ahead of removal and therefore default to `v1alpha2` CRI instead of `v1`. Partially reverts changes from kubernetes#106501 Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
We should not touch the dockershim ahead of removal and therefore default to `v1alpha2` CRI instead of `v1`. Partially reverts changes from kubernetes#106501 Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Hi @ehashman, this PR is a great example for migrating CRI v1alpha2 to v1. pkg/kubelet/cri/remote/conversion.go and |
I wouldn't recommend that… that would immediately attract external callers and remove our ability to easily drop this code when the v1 and v1alpha2 types diverge, which was the plan for this |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Picks up from #106006 - @saschagrunert is OOO.
Which issue(s) this PR fixes:
Beta implementation for kubernetes/enhancements#2040
Special notes for your reviewer:
Identical to #106006 but rebased against latest master and adds unit test suggested in #106006 (comment)
/assign @liggitt @mrunalp
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: