-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CSI: move terminal alloc handling into denormalization #11931
Conversation
87f65a3
to
11f7694
Compare
11f7694
to
d4670ad
Compare
d4670ad
to
ec95b3f
Compare
ec95b3f
to
3cfcea6
Compare
The volume claim GC method and volumewatcher both have logic collecting terminal allocations that duplicates most of the logic that's now in the state store's `CSIVolumeDenormalize` method. Copy this logic into the state store so that all code paths have the same view of the past claims. (1/4 refactoring commits)
Remove logic in the volume claim GC that now lives in the state store's `CSIVolumeDenormalize` method. (2/4 refactoring commits)
Remove logic in the volumewatcher that now lives in the state store's `CSIVolumeDenormalize` method. (3/4 refactoring commits)
Remove logic in the node unpublish RPC that now lives in the state store's `CSIVolumeDenormalize` method. (4/4 refactoring commits)
3cfcea6
to
f223bf7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* The volume claim GC method and volumewatcher both have logic collecting terminal allocations that duplicates most of the logic that's now in the state store's `CSIVolumeDenormalize` method. Copy this logic into the state store so that all code paths have the same view of the past claims. * Remove logic in the volume claim GC that now lives in the state store's `CSIVolumeDenormalize` method. * Remove logic in the volumewatcher that now lives in the state store's `CSIVolumeDenormalize` method. * Remove logic in the node unpublish RPC that now lives in the state store's `CSIVolumeDenormalize` method.
* The volume claim GC method and volumewatcher both have logic collecting terminal allocations that duplicates most of the logic that's now in the state store's `CSIVolumeDenormalize` method. Copy this logic into the state store so that all code paths have the same view of the past claims. * Remove logic in the volume claim GC that now lives in the state store's `CSIVolumeDenormalize` method. * Remove logic in the volumewatcher that now lives in the state store's `CSIVolumeDenormalize` method. * Remove logic in the node unpublish RPC that now lives in the state store's `CSIVolumeDenormalize` method.
Removed the |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This draft PR has been split off from #11890 and #11932 to make the core idea of those PRs more understandable.
The core GC job and volumewatcher will have logic that largely duplicates logic in the state store's
CSIVolumeDenormalize
method. The only missing part is the handling of terminal allocations, so this changeset moves that logic into theCSIVolumeDenormalize
method so it exists in only one place. Best reviewed commit-by-commit.