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 DeleteInstance helper to check UID #466

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

gibizer
Copy link
Contributor

@gibizer gibizer commented Feb 26, 2024

When the helper deletes a resource it checks that it is not found any
more (i.e.:finalizeres are not blocking the deletion). But it checks by
resource name so if the resource is recreated in the meantime with the
same name then the helper will think the deletion did not happened.
This patch makes sure that only the original resource is deleted by
checking its UID.

When the helper deletes a resource it checks that it is not found any
more (i.e.:finalizeres are not blocking the deletion). But it checks by
resource name so if the resource is recreated in the meantime with the
same name then the helper will think the deletion did not happened.
This patch makes sure that only the original resource is deleted by
checking its UID.
Copy link
Contributor

@mrkisaolamb mrkisaolamb left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@stuggi stuggi left a comment

Choose a reason for hiding this comment

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

/lgtm

@stuggi stuggi merged commit 5c5707b into openstack-k8s-operators:main Feb 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants