Skip to content
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

Refactor reserve-excess-capacity Helm chart into Golang component #6135

Merged
merged 7 commits into from
Jun 21, 2022

Conversation

rfranzke
Copy link
Member

How to categorize this PR?

/area dev-productivity quality robustness
/kind technical-debt test enhancement
/topology seed
/platform all
/exp intermediate
/merge squash

What this PR does / why we need it:
This PR refactors the deployment for the reserve-excess-capacity Helm resources. It adopts the component concept. Consequently, it eliminates the Helm resources and adds unit tests, instead. This improves several aspects and the overall code quality.

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

Release note:

NONE

@gardener-prow gardener-prow bot added area/dev-productivity Developer productivity related (how to improve development) area/quality Output qualification (tests, checks, scans, automation in general, etc.) related area/robustness Robustness, reliability, resilience related kind/technical-debt Something that is only solved on the surface, but requires more (re)work to be done properly kind/test Test kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jun 17, 2022
@rfranzke rfranzke added the component/gardener Gardener label Jun 18, 2022
@shafeeqes
Copy link
Contributor

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jun 21, 2022
Copy link
Contributor

@ary1992 ary1992 left a comment

Choose a reason for hiding this comment

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

Minor suggestion while reviewing the PR with @ialidzhikov

pkg/operation/botanist/component/seedsystem/seedsystem.go Outdated Show resolved Hide resolved
Copy link
Member

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

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

1 inline question.

I was also wondering what is the difference between the reserve-excess-capacity that is deployed as part of the Seed reconciliation and the following extension https://github.com/gardener/reserve-excess-capacity?

@gardener-prow gardener-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 21, 2022
@rfranzke
Copy link
Member Author

/assign @ialidzhikov @ary1992 @shafeeqes @kris94

Copy link
Member

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jun 21, 2022
@rfranzke
Copy link
Member Author

/approve

@gardener-prow
Copy link
Contributor

gardener-prow bot commented Jun 21, 2022

[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 /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 Jun 21, 2022
@gardener-prow gardener-prow bot merged commit 0905b00 into gardener:master Jun 21, 2022
@rfranzke rfranzke deleted the refactor/rec branch June 21, 2022 11:35
timebertt added a commit to timebertt/gardener that referenced this pull request Jun 24, 2022
This is already done by the seedsystem component when removing the relevant object from the
ManagedResource secret.
Follow-up to gardener#6135
timebertt added a commit to timebertt/gardener that referenced this pull request Jun 28, 2022
This is already done by the seedsystem component when removing the relevant object from the
ManagedResource secret.
Follow-up to gardener#6135
gardener-prow bot pushed a commit that referenced this pull request Jun 28, 2022
…ardenlet (#6186)

* Document well-known PriorityClasses

* Introduce constants for well-known PriorityClass names

Constant names include their purpose as well to make misuse less likely.

* Manage well-known Seed PriorityClasses in seedsystem

* Deprecated gardener-shoot-controlplane and manage in seedsystem

* Manage well-known Shoot PriorityClasses in shootsystem

* Drop DeleteReserveExcessCapacity

This is already done by the seedsystem component when removing the relevant object from the
ManagedResource secret.
Follow-up to #6135

* Address suggestions
krgostev pushed a commit to krgostev/gardener that referenced this pull request Jul 5, 2022
…ardener#6135)

* Add basic template of new `seedsystem` component

* Integrate `seedsystem` component into seed reconciliation/deletion flows

* Refactor `PriorityClass` template to Golang object

* Refactor `Deployment` template to Golang object

* Drop no longer required code

* Consider `seedsystem` components in seed health check

* Address PR review feedback
krgostev pushed a commit to krgostev/gardener that referenced this pull request Jul 5, 2022
…ardenlet (gardener#6186)

* Document well-known PriorityClasses

* Introduce constants for well-known PriorityClass names

Constant names include their purpose as well to make misuse less likely.

* Manage well-known Seed PriorityClasses in seedsystem

* Deprecated gardener-shoot-controlplane and manage in seedsystem

* Manage well-known Shoot PriorityClasses in shootsystem

* Drop DeleteReserveExcessCapacity

This is already done by the seedsystem component when removing the relevant object from the
ManagedResource secret.
Follow-up to gardener#6135

* Address suggestions
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/dev-productivity Developer productivity related (how to improve development) area/quality Output qualification (tests, checks, scans, automation in general, etc.) related area/robustness Robustness, reliability, resilience related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. component/gardener Gardener kind/enhancement Enhancement, improvement, extension kind/technical-debt Something that is only solved on the surface, but requires more (re)work to be done properly kind/test Test lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants