-
Notifications
You must be signed in to change notification settings - Fork 107
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
fix(controller): provision zfs volume if zfs volume already exists #576
Conversation
6781257
to
b6d2974
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #576 +/- ##
========================================
Coverage 96.37% 96.37%
========================================
Files 1 1
Lines 496 496
========================================
Hits 478 478
Misses 14 14
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@AChangFeng Can you give some more context on how updating the finalizers help here? |
|
Isn't that bit of the code for older volumes that did not have the status? Shouldn't hit if the zfsvolume having a status is ready? |
Think about this corner case:
|
Yes, I agree to the flow you suggested here. I was wondering rather than resetting the finalizer, what if we fix the I believe the issue happens because we do the check using finalizer even if we have the status, which should have been just enough otherwise to figure out if the volume is ready. |
LGTM. I have fixed the |
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.
LGTM
Signed-off-by: AChangFeng <[email protected]>
@AChangFeng Are we good to merge? |
Yes, everything looks good to me. |
Why is this PR required? What issue does it fix?:
What this PR does?:
Does this PR require any upgrade changes?:
No
If the changes in this PR are manually verified, list down the scenarios covered::
Any additional information for your reviewer? :
No
Checklist:
<type>(<scope>): <subject>