Skip to content

Conversation

@nzhan126
Copy link
Contributor

@nzhan126 nzhan126 commented Jul 14, 2025

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

@coderabbitai
Copy link

coderabbitai bot commented Jul 14, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nzhan126 nzhan126 force-pushed the issue11286 branch 2 times, most recently from b1707d1 to 4b3eeca Compare July 14, 2025 21:31
@nzhan126 nzhan126 marked this pull request as ready for review July 14, 2025 21:32
@nzhan126 nzhan126 requested a review from shuo-wu July 14, 2025 21:55
Copy link
Contributor

@shuo-wu shuo-wu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will Longhorn still try to delete the orphan automatically after a replica reuses its data directory?

@nzhan126
Copy link
Contributor Author

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.

@innobead innobead requested a review from COLDTURNIP September 7, 2025 15:48
Copy link
Contributor

@COLDTURNIP COLDTURNIP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

check for DeleteCustomResourceOnly label in orphan
if label is set to true, skip data cleaning

ref#11286

Signed-off-by: Nina Zhan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants