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:
This PR augments gardenadm init to read the resources (Shoot, CloudProfile, Project) from disk and use them to initialize a new Botanist object in order to run the first flow task.

/cc @ScheererJ @timebertt

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

Release note:

NONE

@gardener-prow gardener-prow bot added area/ipcei IPCEI (Important Project of Common European Interest) kind/enhancement Enhancement, improvement, extension 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 25, 2025
@rfranzke rfranzke force-pushed the gep28/init branch 2 times, most recently from e837416 to 8ca47b2 Compare February 25, 2025 15:10
@ScheererJ
Copy link
Member

/assign

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 taking the next steps towards autonomous shoot clusters. The change look already mostly good.

@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.

Very nice PR, thanks :)

rfranzke and others added 8 commits February 26, 2025 14:48
We use `fakeclient` for the fake ctrl-runtime client, so let's use
`fakekubernetes` for the fake kubernetes clientset interface.
- exemplary first task in this flow
- since we use gardenlet code, we also register its feature gates
- unit test is dropped since this flow will grow quite substantially, so
  it's pointless to try to unit-test it (similar to shoot reconciliation
  flow in `gardenlet`)
- for non-essential things (at least in this point in time), we don't
  want to provide "fake configuration" to the botanist just to make the code work
- instead, let's make things optional where possible/non-essential
- this might change in the future when the `init` flow evolves, but for
  now/to get started, we want to provide minimal configuration
- at least the CloudProfile for now, later also
  Controller{Registration,Deployment}

Co-Authored-By: Tim Ebert <timebertt@gmail.com>
…eneration

The `.status.uid` is meant to carry a unique UID for a `Shoot`, hence,
this one should be used when generating technical names.
The `.metadata.uid` can change when the `Shoot` is deleted and
re-created in etcd/the API server.

Co-Authored-By: Tim Ebert <timebertt@gmail.com>
rfranzke and others added 2 commits February 26, 2025 16:47
- also addresses other nits of the PR feedback

Co-Authored-By: Tim Ebert <timebertt@gmail.com>
Co-Authored-By: Tim Ebert <timebertt@gmail.com>
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 27, 2025
Copy link
Contributor

gardener-prow bot commented Feb 27, 2025

LGTM label has been added.

Git tree hash: 9c54df5b59f107f3aa49f43da24f9611b54bf02a

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 27, 2025
Copy link
Contributor

gardener-prow bot commented Feb 27, 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 6de7886 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.

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.

Lovely!

Copy link
Contributor

gardener-prow bot commented Feb 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ScheererJ, timebertt

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:
  • OWNERS [ScheererJ,timebertt]

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 merged commit 7d99e68 into gardener:master Feb 27, 2025
18 of 19 checks passed
@rfranzke rfranzke deleted the gep28/init branch February 28, 2025 09:10
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