fix: Allow deleting orphans while retaining the data#3924
fix: Allow deleting orphans while retaining the data#3924nzhan126 wants to merge 1 commit intolonghorn:masterfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
b1707d1 to
4b3eeca
Compare
shuo-wu
left a comment
There was a problem hiding this comment.
Will Longhorn still try to delete the orphan automatically after a replica reuses its data directory?
@shuo-wu Yes the orphan will be deleted automatically, data stay. |
a918dca to
7a8e169
Compare
check for DeleteCustomResourceOnly label in orphan if label is set to true, skip data cleaning ref#11286 Signed-off-by: Nina Zhan <112509390+nzhan126@users.noreply.github.com>
check for DeleteCustomResourceOnly label in orphan when deciding whether to clean the data associated
longhorn/longhorn#11286
Which issue(s) this PR fixes:
Issue #11286
What this PR does / why we need it:
Special notes for your reviewer:
Additional documentation or context