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

Fix leak of extension-controlplane-shoot-webhooks ManagedResource #9209

Merged
merged 6 commits into from
Mar 1, 2024

Conversation

timuthy
Copy link
Contributor

@timuthy timuthy commented Feb 23, 2024

How to categorize this PR?

/area ops-productivity
/area usability
/kind bug

What this PR does / why we need it:
This PR eliminates a race condition that led to a leaked managed resource extension-controlplane-shoot-webhooks during shoot deletion (see #8688 for more details).
Unlike before, the said ManagedResource is only updated when all shoot namespaces are reconciled. Creation won't happen anymore in this scope.

Which issue(s) this PR fixes:
Fixes #8688

Special notes for your reviewer:
/cc @Kostov6 @ialidzhikov

Release note:

An issue was fixed that sometimes led to leaked `extension-controlplane-shoot-webhooks` which blocked the shoot deletion.

@gardener-prow gardener-prow bot added area/ops-productivity Operator productivity related (how to improve operations) area/usability Usability related kind/bug Bug cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 23, 2024
@timuthy timuthy changed the title Fix.mr shoot webhooks Fix leak of extension-controlplane-shoot-webhooks ManagedResource Feb 23, 2024
@rfranzke
Copy link
Member

/assign

Copy link
Contributor

@Kostov6 Kostov6 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!
Just an initial question from my side: isn't it more clearer to use createOnReconcile instead of createOnUpdate because the variable is being used for creation in the context of the Reconcile function in the builder package?

@timuthy
Copy link
Contributor Author

timuthy commented Feb 28, 2024

@Kostov6 thanks for the feedback!

Just an initial question from my side: isn't it more clearer to use createOnReconcile instead of createOnUpdate

I can rename it 👍

Any additional feedback from your side @rfranzke?

@gardener-prow gardener-prow bot added cla: no Indicates the PR's author has not signed the cla-assistant.io CLA. cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. and removed cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. cla: no Indicates the PR's author has not signed the cla-assistant.io CLA. labels Feb 29, 2024
Copy link
Member

@rfranzke rfranzke 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 Mar 1, 2024
Copy link
Contributor

gardener-prow bot commented Mar 1, 2024

LGTM label has been added.

Git tree hash: 12d0d261a0e1fcbd794947a0dec02c85df4b4383

Copy link
Contributor

gardener-prow bot commented Mar 1, 2024

[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 Mar 1, 2024
@gardener-prow gardener-prow bot merged commit bd54446 into gardener:master Mar 1, 2024
17 checks passed
@timuthy timuthy deleted the fix.mr-shoot-webhooks branch March 1, 2024 14:53
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/ops-productivity Operator productivity related (how to improve operations) area/usability Usability related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/bug Bug lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leaked ManagedResource extension-controlplane-shoot-webhooks might prevent shoot deletion
3 participants