-
Notifications
You must be signed in to change notification settings - Fork 526
chore: Deprecate the Shoot field .kubeAPIServer.enableAnonymousAuthentication
#11984
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
chore: Deprecate the Shoot field .kubeAPIServer.enableAnonymousAuthentication
#11984
Conversation
Test Integration Operator Garden Garden Suite: [It] Garden controller tests should successfully reconcile and delete a Garden
/test pull-gardener-integration |
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.
Nice, thank you for this PR!
/lgtm
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.
Can you also send a warning when a Shoot
specifies this field? https://github.com/gardener/gardener/blob/master/pkg/api/core/shoot/warnings.go
d75fb5d
to
79eba6d
Compare
79eba6d
to
9e8c9b7
Compare
Good idea! Fixed via: |
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
LGTM label has been added. Git tree hash: 66fb23aea2881cbb2430b8e17837fec9bf3e4f8d
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rfranzke 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 |
Test E2E Gardener Suite: [It] Shoot Tests Create Shoot, Rotate Credentials and Delete Shoot Shoot with workers with workers rollout, in-place update strategy Wait for Shoot to be reconciled [Shoot, default, credentials-rotation, basic, with-workers-rollout, in-place]
/test pull-gardener-e2e-kind-ipv6 |
The requested change has been addressed
Test E2E Gardener Suite: [It] Shoot Tests Create Shoot, Rotate Credentials and Delete Shoot Shoot with workers with workers rollout, in-place update strategy Wait for Shoot to be reconciled [Shoot, default, credentials-rotation, basic, with-workers-rollout, in-place]
/test pull-gardener-e2e-kind-ipv6 |
How to categorize this PR?
/area control-plane
/area robustness
/kind task
/kind api-change
What this PR does / why we need it:
This PR deprecates the
Shoot
fieldspec.kubernetes.kubeAPIServer.enableAnonymousAuthentication
.It adds validation that prevents users from configuring the legacy setting in the
Shoot
spec at the same time as the preferred anonymous authentication configuration.Once the Kubernetes feature gate
AnonymousAuthConfigurableEndpoints
graduates, we should forbid setting.kubeAPIServer.enableAnonymousAuthentication
in theShoot
spec (it remains in Beta state with Kubernetes v1.33).Finally, further out in the future, when Gardener only supports Kubernetes versions with the stable
AnonymousAuthConfigurableEndpoints
feature, we should drop the legacy field altogether.Which issue(s) this PR fixes:
Fixes #11657
Special notes for your reviewer:
Reviewing the individual commits is easier.
/cc @LucaBernstein @dimityrmirchev
I used #10666 as a reference. Thanks for the well-structured PR @AleksandarSavchev!
Release note: