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

do not block delete because of emtpy child resources #2538

Merged
merged 1 commit into from Feb 15, 2024

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Feb 15, 2024

The finalizer will not get removed if there are any errors during the delete. But, it can happen on cluster creation that child resources never got created and, thus, are empty like c.StatefulSet, c.PodDisruptionBudget etc. If the operator considers this as an error it would never allow the removal of finalizers.

Instead, in all the delete function the operator should only log the fact that a child resource is missing and return with nil. This way finalizer removal and manifest deletion can happen.

@idanovinda
Copy link
Member

👍

1 similar comment
@FxKu
Copy link
Member Author

FxKu commented Feb 15, 2024

👍

@FxKu FxKu merged commit c1bfc2c into master Feb 15, 2024
5 of 8 checks passed
@FxKu FxKu deleted the delete-finalizer-fix branch February 15, 2024 13:52
@FxKu FxKu removed the bug label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants