-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When condition is not met, we set the protected PVC condition message using the error message returned from isVRConditionMet(). When using csi-addons > 0.10.0, we use now the message from the condition instead of the default message. Since the Validated condition is not reported by older version of csi-addons, and ramen may run on a system with older csi-addons, isVRConditionMet() return now a boolean value telling if the check was successful; we found the condition, its observed generation matches the object generation, and its value is not Unknown. Since we want to propagate the message from the Validated condition, if Validate.Status was False, we set the DataReady and DataProtected using the Validated.Message, and skip checking the next conditions. If we could not check the Validated condition we continue to check the other conditions. Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information
Showing
1 changed file
with
47 additions
and
24 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