-
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 deprecated hyperkube image support in v1beta3 #101537
kubeadm: remove deprecated hyperkube image support in v1beta3 #101537
Conversation
/triage accepted |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: neolit123 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 |
9d8f114
to
330bb7e
Compare
/retest |
330bb7e
to
740d575
Compare
740d575
to
3dd084e
Compare
/hold |
@@ -104,6 +104,8 @@ func fuzzClusterConfiguration(obj *kubeadm.ClusterConfiguration, c fuzz.Continue | |||
obj.APIServer.TimeoutForControlPlane = &metav1.Duration{ | |||
Duration: constants.DefaultControlPlaneTimeout, | |||
} | |||
// Does not exist in v1beta3+; round tripping would fail without this. | |||
obj.UseHyperKubeImage = false |
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.
i had to pin this to make the fuzzer happy.
@@ -23,7 +23,8 @@ limitations under the License. | |||
// This version improves on the v1beta2 format by fixing some minor issues and adding a few new fields. | |||
// | |||
// A list of changes since v1beta2: | |||
// - TODO | |||
// - The deprecated "ClusterConfiguration.useHyperKubeImage" field has been removed. | |||
// Kubeadm no longer supports the hyperkube image. |
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.
It will have a merge conflict with #101537 merged.
So I will add /lgtm later.
@@ -117,8 +117,7 @@ type ClusterConfiguration struct { | |||
CIImageRepository string | |||
|
|||
// UseHyperKubeImage controls if hyperkube should be used for Kubernetes components instead of their respective separate images | |||
// DEPRECATED: As hyperkube is itself deprecated, this fields is too. It will be removed in future kubeadm config versions, kubeadm | |||
// will print multiple warnings when set to true, and at some point it may become ignored. | |||
// TODO: Remove this with v1beta2 https://github.com/kubernetes/kubeadm/issues/2459 |
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.
Should we remove this from internal types as well?
In the v1beta2 deprecation we already informed users that this will be ignored at a certain point...
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.
i've removed the field from the internal type.
3dd084e
to
ebb7376
Compare
The hyperkube image support was deprecated. Remove the field ClusterConfiguration.UseHyperKubeImage from the new v1beta3 API.
ebb7376
to
81d5b18
Compare
/retest |
/retest |
1 similar comment
/retest |
/retest |
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
/hold cancel |
What this PR does / why we need it:
The hyperkube image support was deprecated. Remove the field
ClusterConfiguration.UseHyperKubeImage from the new v1beta3 API.
Which issue(s) this PR fixes:
Fixes kubernetes/kubeadm#1889
xref kubernetes/kubeadm#1796
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: