-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When deleting a primary VRG, we wait until the VR Completed condition is met. However if a VR precondition failed, for example using a drpolicy without flattening enabled when the PVC needs flattening, the VR will never complete, so the vrg will never be deleted. In csi-addons 0.10.0 we have a new Validated VR condition, set to true if pre conditions are met, and false if not. This change handles this new condition. When deleting a primary VRG, we check the VR Validated condition: - If the condition exists and is false, this VR will never complete and can be safely deleted. We return true, meaning that the VR is in the desired condition. - Otherwise we continue normally to check the next conditions. This change adds validation for the condition and log the status for understanding if this is the right place to change. Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information
Showing
2 changed files
with
43 additions
and
3 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