-
Notifications
You must be signed in to change notification settings - Fork 39.3k
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
remove deprecated Kubeadm v1beta2 API #114540
Conversation
8cb363e
to
cd64ff5
Compare
f10df23
to
56466b3
Compare
/priority important-soon |
/assign @neolit123 |
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.
thanks @pacoxu
i will review later today or tomorrow
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.
the change looks clean, all around.
you could also announce the removal of the API on the SIG CL mailing list.
/approve
/hold
/assign @SataQiu
for additional review
/release-note-edit
just in case if someone asks. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: neolit123, pacoxu, SataQiu 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 |
56466b3
to
cca7a20
Compare
/lgtm |
LGTM label has been added. Git tree hash: 27662aa584993716a7ff9f267c57c3f2c4aa973b
|
Thanks for your review. |
/test pull-kubernetes-verify-govet-levee |
@@ -43,6 +43,7 @@ limitations under the License. | |||
// | |||
// - kubeadm v1.15.x and newer can be used to migrate from v1beta1 to v1beta2. | |||
// - kubeadm v1.22.x and newer no longer support v1beta1 and older APIs, but can be used to migrate v1beta2 to v1beta3. | |||
// - kubeadm v1.27.x and newer no longer support v1beta2 and older APIs. |
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.
but we still don't have something as v1beta4 yet? shouldn't us follow the -2 policy?
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.
shouldn't us follow the -2 policy?
on a number of occasions kubeadm had a singe API version and we haven't followed such a policy.
but there were discussions that the kubeadm-config CM storage version should be the older API version for one release minimum before switching to the newer API.
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.
In my mind, the v1beta4 plan is isolated with v1beta2 deprecation.
There is no skew policy for this. https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#version-skew-policy
func Convert_kubeadm_DNS_To_v1beta3_DNS(in *kubeadm.DNS, out *DNS, s conversion.Scope) error { | ||
return autoConvert_kubeadm_DNS_To_v1beta3_DNS(in, out, s) | ||
} | ||
|
||
// Convert_v1beta3_ClusterConfiguration_To_kubeadm_ClusterConfiguration is required due to the missing |
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 is not a complete and read-able sentence after the removing of the below line.
// Convert_v1beta3_ClusterConfiguration_To_kubeadm_ClusterConfiguration is required due to the missing | ||
// DNS.Type in v1beta3. TODO: Remove with v1beta2 https://github.com/kubernetes/kubeadm/issues/2459 | ||
func Convert_v1beta3_ClusterConfiguration_To_kubeadm_ClusterConfiguration(in *ClusterConfiguration, out *kubeadm.ClusterConfiguration, s conversion.Scope) error { |
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.
we can remove this manual conversion here now that v1beta2 is removed.
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.
see: #115676
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes kubernetes/kubeadm#2459
Special notes for your reviewer:
Does this PR introduce a user-facing change?