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

🐛 (x-port vc-9.0.0) Do not patch a zone with finalizer if it is being deleted #917

Open
wants to merge 1 commit into
base: release/vc-9.0.0
Choose a base branch
from

Conversation

aruneshpa
Copy link
Contributor

What does this PR do, and why is it needed?

API server rejects Patch requests when the zone controller is attempting to add a finalizer to the zone, causing the watcher to never start. And since the watcher is the entity removing the finalizer, the zone stays stuck in deletion forever. This change skips a zone from being patched if the zone is being deleted.

Additionally, do not watch folders backing a zone if the zone is marked for deletion and the zone does not contain the finalizer. This can happen in situations where the zone controller has already removed the finalizer after stopping the watcher, but the zone is somehow not removed.

Are there any special notes for your reviewer:

This is a crossport of: #913

Please add a release note if necessary:

Do not patch a zone with finalizer if it is being deleted

… deleted (vmware-tanzu#913)

API server rejects Patch requests when the zone controller
is attempting to add a finalizer to the zone, causing the watcher to
never start.  And since the watcher is the entity removing the
finalizer, the zone stays stuck in deletion forever.  This change
skips a zone from being patched if the zone is being deleted.

Additionally, do not watch folders backing a zone if the zone is
marked for deletion and the zone does not contain the finalizer.  This
can happen in situations where the zone controller has already removed
the finalizer after stopping the watcher, but the zone is somehow not removed.
@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines. label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants