forked from rook/rook
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
csi: cleanup csi driver resources when zero cephclusters exist
This commit modifies ceph-csi controller to be able to cleanup ceph-csi deployment,daemonset,services & csidriver objects when no cephcluster exists. It makes the following changes: - redundant check for tp.DriverNamePrefix is removed. - retry to start drivers within reconcile loop is removed, controller will retry in case of error now. - stopDrivers() will now return error in case of failure. - predicate delete func will now respond to cephcluster deletion. - CSI resources will be cleaned up when cephcluster does not exist. Fixes: rook#9697 Signed-off-by: Rakshith R <rar@redhat.com> (cherry picked from commit 1e9920f)
- Loading branch information
1 parent
44a324f
commit 2027e7f
Showing
4 changed files
with
51 additions
and
45 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