gardener icon indicating copy to clipboard operation
gardener copied to clipboard

Forbid setting the `Shoot`'s `.spec.kubernetes.kubeControllerManager.podEvictionTimeout` field for Kubernetes versions >= 1.33

Open plkokanov opened this issue 10 months ago • 5 comments

How to categorize this PR?

/area control-plane /kind cleanup

What this PR does / why we need it: This PR forbids users to set the previously deprecated .spec.kubernetes.kubeControllerManager.podEvictionTimeout shoot field for Kubernetes versions >= 1.33. In this way, once support for Kubernetes 1.32 is dropped, the field can be safely removed from the shoot spec. Shoot owners should already be relying on the .spec.kubernetes.kubeAPIServer.defaultNotReadyTolerationSeconds and .spec.kubernetes.kubeAPIServer.defaultUnreachableTolerationSeconds fields, instead of the deprecated one as it has essentially been a no-op since k8s 1.13.

Which issue(s) this PR fixes: Part of https://github.com/gardener/gardener/issues/11933 (more concretely: https://github.com/gardener/gardener/issues/11933#issuecomment-2958527635)

Special notes for your reviewer: /cc @shafeeqes @RadaBDimitrova @Kostov6 @ialidzhikov

Release note:

The `.spec.kubernetes.kubeControllerManager.podEvictionTimeout` field in the `Shoot` API is forbidden to be set for Kubernetes versions >= 1.33 and will be removed after support for Kubernetes 1.32 is dropped.

plkokanov avatar Jun 17 '25 13:06 plkokanov

@plkokanov: GitHub didn't allow me to request PR reviews from the following users: RadaBDimitrova.

Note that only gardener members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

How to categorize this PR?

/area control-plane /kind cleanup

What this PR does / why we need it: This PR forbids users to set the previously deprecated .spec.kubernetes.kubeControllerManager.podEvictionTimeout shoot field for Kubernetes versions >= 1.33. In this way, once support for Kubernetes 1.32 is dropped, the field can be safely removed from the shoot spec. Shoot owners should already be relying on the .spec.kubernetes.kubeAPIServer.defaultNotReadyTolerationSeconds and .spec.kubernetes.kubeAPIServer.defaultUnreachableTolerationSeconds fields, instead of the deprecated one as it has essentially been a no-op since k8s 1.13.

Which issue(s) this PR fixes: Part of https://github.com/gardener/gardener/issues/11933 (more concretely: https://github.com/gardener/gardener/issues/11933#issuecomment-2958527635)

Special notes for your reviewer: /cc @shafeeqes @RadaBDimitrova @Kostov6 @ialidzhikov

Release note:

The `.spec.kubernetes.kubeControllerManager.podEvictionTimeout` field in the `Shoot` API is forbidden to be set for Kubernetes versions >= 1.33 and will be removed after support for Kubernetes 1.32 is dropped.

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-sigs/prow repository.

gardener-prow[bot] avatar Jun 17 '25 13:06 gardener-prow[bot]

/assign @RadaBDimitrova @Kostov6 @ialidzhikov

ialidzhikov avatar Jun 18 '25 06:06 ialidzhikov

@ialidzhikov: GitHub didn't allow me to assign the following users: RadaBDimitrova.

Note that only gardener members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. For more information please see the contributor guide

In response to this:

/assign @RadaBDimitrova @Kostov6 @ialidzhikov

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-sigs/prow repository.

gardener-prow[bot] avatar Jun 18 '25 06:06 gardener-prow[bot]

/lgtm

shafeeqes avatar Jun 23 '25 04:06 shafeeqes

LGTM label has been added.

Git tree hash: fcb62cc2e9d33ac618c09d2fb5c1572e8a16f40d

gardener-prow[bot] avatar Jun 23 '25 04:06 gardener-prow[bot]

/retest

Kostov6 avatar Jun 24 '25 08:06 Kostov6

LGTM label has been added.

Git tree hash: fb1b2a70674e1f4fdd23d6542568feabf436ea4d

gardener-prow[bot] avatar Jun 24 '25 12:06 gardener-prow[bot]

LGTM label has been added.

Git tree hash: dd9f5bf129c894bda425ca518d1e34b80e89714c

gardener-prow[bot] avatar Jun 24 '25 14:06 gardener-prow[bot]

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ialidzhikov

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

gardener-prow[bot] avatar Jun 24 '25 14:06 gardener-prow[bot]