Skip to content

Conversation

rfranzke
Copy link
Member

How to categorize this PR?

/area ipcei
/kind enhancement

What this PR does / why we need it:

  • Rename Shoot.SeedNamespace to Shoot.ControlPlaneNamespace
  • to make it very clear for the autonomous case
  • in the future, this is no longer necessarily the same as the technical ID of the shoot (at least for ASCs)
  • Introduce .spec.provider.workers[].controlPlane in Shoot API
    • in order to mark a Shoot as "autonomous", there must be exactly one pool that sets the controlPlane field
    • currently, it's not allowed to set this (we are not there yet)
    • for gardenadm bootstrapping, the Shoot manifest is read via file, i.e., validation is not called (at least for now, otherwise we have to introduce a feature gate, let's see how it goes)
  • Streamline usages of .status.technicalID
  • Improve client map and drop legacy secret handling
    • gardenlet and gardener-operator always run in the cluster like garden/shoot, so there is no need to make a DNS lookup
    • they can always use the cluster-internal kubeconfig

Which issue(s) this PR fixes:
Part of #2906

Special notes for your reviewer:
/cc @timebertt @ScheererJ

Release note:

NONE

@gardener-prow gardener-prow bot added area/ipcei IPCEI (Important Project of Common European Interest) kind/enhancement Enhancement, improvement, extension labels Feb 13, 2025
@gardener-prow gardener-prow bot added cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 13, 2025
@rfranzke rfranzke force-pushed the gep28/controlplane-namespace branch from eb1d7dd to ac2f102 Compare February 13, 2025 15:37
@ScheererJ
Copy link
Member

/assign

@gardener-prow gardener-prow bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 14, 2025
@timebertt
Copy link
Member

/assign

Copy link
Member

@timebertt timebertt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR, only nits from my side. Otherwise lgtm

@rfranzke rfranzke force-pushed the gep28/controlplane-namespace branch from ac2f102 to c995224 Compare February 14, 2025 11:00
@rfranzke rfranzke requested a review from timebertt February 14, 2025 11:01
@gardener-prow gardener-prow bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 14, 2025
@rfranzke rfranzke force-pushed the gep28/controlplane-namespace branch 2 times, most recently from 770a895 to 230a755 Compare February 14, 2025 11:28
Copy link
Member

@ScheererJ ScheererJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for improving the names. It will hopefully make the code easier to understand in both autonomous as well as ordinary shoot cluster scenarios.

@rfranzke rfranzke requested a review from ScheererJ February 14, 2025 13:35
Copy link
Member

@timebertt timebertt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 17, 2025
Copy link
Contributor

gardener-prow bot commented Feb 17, 2025

LGTM label has been added.

Git tree hash: 5f5a26620cc31c15356acc1fab54d5a949b3e7f9

@gardener-prow gardener-prow bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2025
- to make it very clear for the autonomous case
- in the future, this is no longer necessarily the same as the technical
  ID of the shoot (at least for ASCs)
- in order to mark a Shoot as "autonomous", there must be exactly one
  pool that sets the controlPlane field
- currently, it's not allowed to set this (we are not there yet)
- for gardenadm bootstrapping, the Shoot manifest is read via file,
  i.e., validation is not called (at least for now, otherwise we have to
introduce a feature gate, let's see how it goes)
The control plane namespace for ASCs will be `kube-system`, otherwise
we'll fall back to the technical ID.
- gardenlet and gardener-operator always run in the cluster like
  garden/shoot, so there is no need to make a DNS lookup
- they can always use the cluster-internal kubeconfig
@rfranzke rfranzke force-pushed the gep28/controlplane-namespace branch from f796187 to 1376d0f Compare February 18, 2025 08:22
@gardener-prow gardener-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 18, 2025
@gardener-prow gardener-prow bot requested a review from timebertt February 18, 2025 08:22
@gardener-prow gardener-prow bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 18, 2025
Copy link
Member

@ScheererJ ScheererJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 18, 2025
Copy link
Contributor

gardener-prow bot commented Feb 18, 2025

LGTM label has been added.

Git tree hash: 86f9dc366abc39f2c756343aa91f5019eef1955c

Copy link
Contributor

gardener-prow bot commented Feb 18, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ScheererJ

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 gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 18, 2025
@rfranzke
Copy link
Member Author

/retest

Copy link
Contributor

gardener-prow bot commented Feb 18, 2025

@rfranzke: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-gardener-apidiff 1376d0f link false /test pull-gardener-apidiff

Full PR test history. Your PR dashboard. Command help for this repository.
Please help us cut down on flakes by linking this test failure to an open flake report or filing a new flake report if you can't find an existing one. Also see our testing guideline for how to avoid and hunt flakes.

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. I understand the commands that are listed here.

@gardener-prow gardener-prow bot merged commit fa0bd21 into gardener:master Feb 18, 2025
18 of 19 checks passed
@rfranzke rfranzke deleted the gep28/controlplane-namespace branch February 18, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/ipcei IPCEI (Important Project of Common European Interest) cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants