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

[CN-1049] Skip validations on MC and HZ deletion #923

Merged
merged 1 commit into from Nov 1, 2023
Merged

[CN-1049] Skip validations on MC and HZ deletion #923

merged 1 commit into from Nov 1, 2023

Conversation

cagric0
Copy link
Contributor

@cagric0 cagric0 commented Nov 1, 2023

Description

Before HZ and MC deletion, we are removing finalizer and updating the CR. Thus, webhook's ValidateUpdate function is triggered for them. If there is a broken state for the CR, we were not able to remove finalizer and stuck at the ValidateUpdate function. In order to solve this issue, we add a check to the function. If the CR is marked as deleted(using DeletionTimestamp), we skip the validation.

@cagric0 cagric0 added the fix This type is used to identify changes related to backward-compatible bug fixes label Nov 1, 2023
@cagric0 cagric0 added this to the 5.10.0 milestone Nov 1, 2023
@ghost ghost requested review from a team November 1, 2023 13:35
@cagric0 cagric0 temporarily deployed to report November 1, 2023 13:54 — with GitHub Actions Inactive
@cagric0 cagric0 merged commit a9985ba into main Nov 1, 2023
52 checks passed
@cagric0 cagric0 deleted the cn-1049 branch November 1, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix This type is used to identify changes related to backward-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants