Skip to content

Conversation

LucaBernstein
Copy link
Member

@LucaBernstein LucaBernstein commented Jul 9, 2024

How to categorize this PR?

/area usability
/kind enhancement

What this PR does / why we need it:

  • Make Shoot cloudProfileName optional and complement with cloudProfile reference
  • Extend shoot validation to check for cloudProfileName and cloudProfile
  • Extend shoot strategy to default fill cloudProfileName from cloudProfile and vice versa ("sync")
  • Provide method in reconciler to get applicable cloud profile

Which issue(s) this PR fixes:

Relates to #9504

Special notes for your reviewer:

Release note:

Evaluate `shoot.Spec.CloudProfile` and `shoot.Spec.CloudProfileName` fields together to determine the applicable cloud profile in order to prepare for namespaced cloud profiles.
Use `shoot.Spec.CloudProfile` as the primary directive to specify the cloud profile to use. The value will by synced to the field `shoot.Spec.CloudProfileName` (until it is deprecated and eventually removed in the future). If no cloud profile kind is provided, it will default to `CloudProfile`.

Copy link
Contributor

gardener-prow bot commented Jul 9, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@gardener-prow gardener-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. area/usability Usability related kind/enhancement Enhancement, improvement, extension labels Jul 9, 2024
@gardener-prow gardener-prow bot requested review from acumino and ialidzhikov July 9, 2024 06:57
@gardener-prow gardener-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels Jul 9, 2024
@timuthy
Copy link
Member

timuthy commented Jul 9, 2024

/assign

@LucaBernstein LucaBernstein force-pushed the gep-25-namespacedcloudprofiles-pt-1-i543201 branch 2 times, most recently from a06d184 to c8f9eb7 Compare July 10, 2024 08:48
@LucaBernstein LucaBernstein force-pushed the gep-25-namespacedcloudprofiles-pt-1-i543201 branch from c8f9eb7 to d629874 Compare July 10, 2024 09:14
@LucaBernstein LucaBernstein marked this pull request as ready for review July 11, 2024 08:58
@gardener-prow gardener-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 11, 2024
@gardener-prow gardener-prow bot requested a review from timebertt July 11, 2024 08:58
@LucaBernstein LucaBernstein force-pushed the gep-25-namespacedcloudprofiles-pt-1-i543201 branch from d629874 to 60a8886 Compare July 12, 2024 14:23
Copy link
Member

@timuthy timuthy 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 the PR 👍 Please find some first feedback in-line. I haven't checked all changes in detail yet and will continue this afternoon.

@LucaBernstein LucaBernstein force-pushed the gep-25-namespacedcloudprofiles-pt-1-i543201 branch 4 times, most recently from ec073bc to b46903c Compare July 15, 2024 15:06
@LucaBernstein LucaBernstein force-pushed the gep-25-namespacedcloudprofiles-pt-1-i543201 branch 4 times, most recently from c0d4f67 to 5d25209 Compare July 17, 2024 07:27
Copy link
Member

@timuthy timuthy 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 the adjustments 🙂

@LucaBernstein LucaBernstein force-pushed the gep-25-namespacedcloudprofiles-pt-1-i543201 branch from 1c31170 to 189b064 Compare July 23, 2024 12:07
@LucaBernstein LucaBernstein requested a review from timuthy July 24, 2024 09:02
Copy link
Member

@timuthy timuthy left a comment

Choose a reason for hiding this comment

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

Only minor points left 🙂

@LucaBernstein
Copy link
Member Author

Thanks @timuthy once again for your thorough review. I addressed your findings. Please find the newest commit added to this PR.

@LucaBernstein LucaBernstein requested a review from timuthy July 25, 2024 12:53
Copy link
Member

@timuthy timuthy left a comment

Choose a reason for hiding this comment

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

Thank you 🙂
/lgtm
/approve

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 25, 2024
Copy link
Contributor

gardener-prow bot commented Jul 25, 2024

LGTM label has been added.

Git tree hash: c7340e5c418e2386ffbbca3cb776c49adef476b1

Copy link
Contributor

gardener-prow bot commented Jul 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: timuthy

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 Jul 25, 2024
@gardener-prow gardener-prow bot merged commit 38fb61d into gardener:master Jul 25, 2024
@LucaBernstein LucaBernstein deleted the gep-25-namespacedcloudprofiles-pt-1-i543201 branch July 26, 2024 08:05
dimitar-kostadinov added a commit to gardener/gardener-extension-registry-cache that referenced this pull request Aug 26, 2024
- add `class` field (gardener/gardener#10254)
- use `CloudProfile` (gardener/gardener#10093)
- copy `.ci/third_party/component_descriptor` (gardener/gardener#10218)
- replace local IPs (gardener/gardener#10019)
- fix `imagevector.WithEnvOverrid` (gardener/gardener#10218)
- fix `ForceDeleteShootAndWaitForDeletion` (gardener/gardener#10220)
gardener-prow bot pushed a commit to gardener/gardener-extension-registry-cache that referenced this pull request Aug 27, 2024
* Bump github.com/gardener/gardener from 1.100.1 to 1.102.0

Bumps [github.com/gardener/gardener](https://github.com/gardener/gardener) from 1.100.1 to 1.102.0.
- [Release notes](https://github.com/gardener/gardener/releases)
- [Commits](gardener/gardener@v1.100.1...v1.102.0)

---
updated-dependencies:
- dependency-name: github.com/gardener/gardener
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Adapt code to changes in new gardener version:
- add `class` field (gardener/gardener#10254)
- use `CloudProfile` (gardener/gardener#10093)
- copy `.ci/third_party/component_descriptor` (gardener/gardener#10218)
- replace local IPs (gardener/gardener#10019)
- fix `imagevector.WithEnvOverrid` (gardener/gardener#10218)
- fix `ForceDeleteShootAndWaitForDeletion` (gardener/gardener#10220)

* Address PR review feedback

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dimitar Kostadinov <dimitar.kostadinov@sap.com>
ialidzhikov added a commit to ialidzhikov/gardener-extension-registry-cache that referenced this pull request Oct 28, 2024
ialidzhikov added a commit to ialidzhikov/gardener-extension-shoot-rsyslog-relp that referenced this pull request Oct 28, 2024
gardener-prow bot pushed a commit to gardener/gardener-extension-registry-cache that referenced this pull request Oct 29, 2024
…ucture-cleanup-wait-period-seconds` annotation (#270)

* Clean up usages of the already removed `shoot.gardener.cloud/infrastructure-cleanup-wait-period-seconds` annotation

The annotation was removed in Gardener v1.94.0 with gardener/gardener#9632.

* Replace the `.spec.cloudProfileName` field with `.spec.cloudProfile.name`

Ref gardener/gardener#10093
gardener-prow bot pushed a commit to gardener/gardener-extension-shoot-rsyslog-relp that referenced this pull request Oct 29, 2024
…cture-cleanup-wait-period-seconds` annotation (#187)

* Clean up usage of the already removed `shoot.gardener.cloud/infrastructure-cleanup-wait-period-seconds` annotation

* Replace the `.spec.cloudProfileName` field with `.spec.cloudProfile.name`

Ref gardener/gardener#10093
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/usability Usability related 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.

2 participants