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

Bug Fix - Replacing scan order from PV to PVC while counting on K8s native node annotations #52

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

tal-asulin
Copy link
Contributor

@tal-asulin tal-asulin commented Sep 3, 2024

This PR introduce an update for the way that the controller is filtering the needed PVC objects to be deleted.
In the current method, we are looping over the list of PVs while checking the NodeAffinity query to identify PVs that got allocated on the faulty node. This method does not provide the algorithm a definite way on the decision wether the PV is attached to the faulty node or not (due to query variance).

In this PR, the algorithm will be changed to be:

  1. First, iterate over all the existing PVCs and check which PVC is bounded to the faulty node
  2. Second, make sure using the pvc.spec.volumeName was indeed configured to use the local storage plugin
  3. When pulling all the PVCs, make the deletion.

This PR closes Bug - #48

@tal-asulin tal-asulin marked this pull request as ready for review September 3, 2024 10:38
@tal-asulin tal-asulin merged commit 52674b5 into main Sep 9, 2024
14 checks passed
@tal-asulin tal-asulin deleted the bux-fix-pv-scan-to-pvc-scan branch September 9, 2024 12:23
@tal-asulin tal-asulin mentioned this pull request Sep 26, 2024
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.

2 participants