-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
Kubeadm remove v1alpha2 api #69055
Kubeadm remove v1alpha2 api #69055
Conversation
thanks @fabriziopandini /kind api-change |
Please merge this with #69056 into a single changeset for v1alpha2 for historical purposes. |
c16f677
to
10c3a66
Compare
Also can you squash commits to 2.
|
10c3a66
to
4f5374e
Compare
Dear k8s ci robot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
Please address the comment, or possibly follow up on a separate PR.
oldKnownAPIVersions := map[string]string{ | ||
"kubeadm.k8s.io/v1alpha1": "v1.11", | ||
"kubeadm.k8s.io/v1alpha2": "v1.12", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b/c you are removing alpha 2 should you remove v1.11?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This piece of code gives warning to user if the pass to kubeadm an older version of the config, and tell what version of kubeadm can be used for executing config migrate.
I think that giving a warning also for v1alpha1 doesn't hurts...
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: fabriziopandini, timothysc 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 |
Is the goal here to have one alpha version and n beta versions? Seems like removing the v1alpha2 type is just as dangerous as making a breaking change to v1alpha1 like in the 1.10 release. It feels like at this point we'd want to rename v1alpha2 to v1alpha1 and v1alpha3 to v1beta1. |
@chuckha - It's explicitly stated that the support model for kubeadm needs to upgrade through. So a 1.11 version can only upgrade from 1.10. Maintaining code and machinery of past versions (that aren't supported) is an albatross so we continually shed the code every cycle. |
@timothysc right, I get that, but if I'm reading this right, we're getting rid of the newer version (v1alpha2) and keeping the older one (v1alpha1), I'd suggest renaming v1alpha2 to v1alpha1 and getting rid of the current v1alpha1. |
@fabriziopandini
i know that removing v1alpha1 early in the 1.12 cycle broke kubernetes-anywhere because this early removal method, forced us to handle versions in bash, which is a bad outcome: i will send a PR for k-a, because i'm pretty sure this PR will make the master tests red. |
Current version is v1alpha3; this PR is getting rid of v1alpha2
Thanks. We can make k/a use v1alpha3 for kubeadm v>=1.12 |
/test pull-kubernetes-integration |
What this PR does / why we need it:
This PR removes v1alpha2 API from kubeadm.
Which issue(s) this PR fixes:
Ref: kubernetes/kubeadm#911
Special notes for your reviewer:
This PR is the first of a series or PRs that will remove v1alpha2, cleanup all the references to v1alpha2 objects, and finally add v1beta1 api version; the work is divided into multiple PRs hopefully more easy to review.
This PR leaves some TODOs as a placeholder for implementing v1alpha3-->v1beta1 roundtrip tests in following PRs.
Release note:
@kubernetes/sig-cluster-lifecycle-pr-reviews
sig cluster-lifecycle
kind api-change
area kubeadm
/cc @timothysc @luxas