forked from openebs/mayastor-control-plane
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bors): merge pull request openebs#724
724: Delete Orphaned Volumes on a timer r=tiagolobocastro a=tiagolobocastro fix(csi-controller/gc): list volumes with pagination Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com> --- chore: correct typo in the plaftform code Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com> --- refactor(csi-controller/gc): reduce excessive unwrap and nesting Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com> --- feat(csi-controller/orphaned-vols): gc orphaned volumes on a timer Due to a k8s bug, when pv deletion is attempted before pvc deletion, we may not receive the delete request, and thus leaking volumes, which cannot be deleted through any user facing api. Existing code to clean up orphaned volumes was being made use for the case when certain pv events might be missed. Therefore current WA is to delete the csi-controller pod. This change makes use of this existing logic but runs it on a given time period which is by default 5 minutes, which allows us to automatically WA the bug. Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com> Co-authored-by: Tiago Castro <tiagolobocastro@gmail.com>
- Loading branch information
Showing
9 changed files
with
175 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.