-
Notifications
You must be signed in to change notification settings - Fork 56
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
Propagate VR condition error message to protected pvc conditions #1639
base: main
Are you sure you want to change the base?
Conversation
@@ -8,5 +8,5 @@ resources: | |||
- https://github.com/csi-addons/kubernetes-csi-addons/releases/download/v0.10.0/setup-controller.yaml | |||
|
|||
images: | |||
- name: quay.io/csiaddons/k8s-controller | |||
newTag: v0.10.0 | |||
- name: quay.io/ypadia/k8s-controller |
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.
why ypadia
?
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.
Why are you checking in the development build path?
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.
Because I want to test this PR now:
csi-addons/kubernetes-csi-addons#691
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.
image kustomization fixed, it works now:
csi-addons/kubernetes-csi-addons#691 (comment)
d65c6eb
to
a84c11b
Compare
Using development build of csi-addons adding .Message to the all conditions. Signed-off-by: Nir Soffer <[email protected]>
Works for VR conditions other then Validated. We propagate the messages form the VR conditions: VR:
VRG:
Missing change: when Validated condition is False, we want to set the DataReady condition and DataProtected using the error message from the Validated condition. Currently we use the Validated condition only for checking if the VR is finished and can be removed. |
19ac40b
to
a0d18cc
Compare
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]>
Using development build of csi-addons adding .Message to the all conditions.