Skip to content

fix(cmd): add stop subcommand to check preflight, trim volume, and get replica - #583

Open
kiusys-mstreitenberger wants to merge 1 commit into
longhorn:masterfrom
kiusys-mstreitenberger:9311-stop-subcommands
Open

fix(cmd): add stop subcommand to check preflight, trim volume, and get replica#583
kiusys-mstreitenberger wants to merge 1 commit into
longhorn:masterfrom
kiusys-mstreitenberger:9311-stop-subcommands

Conversation

@kiusys-mstreitenberger

Copy link
Copy Markdown

Which issue(s) this PR fixes:

Issue longhorn/longhorn#9311

What this PR does / why we need it:

A stop command has been added to check preflight, trim volume, and get replica.
checksum was deliberately excluded: its Cleanup() is a no-op, as it merely
updates the Volume CR directly and does not create any cluster resources that
could become orphaned.

Special notes for your reviewer:

  • Each stop command follows the exact pattern of export replica stop.
  • None of the three new commands requires a parent flag to remain visible in stop
  • Manually validated: I interrupted each parent command mid-execution, confirmed that the DaemonSet/RBAC resources were left orphaned, and then verified that the new stop command removes them.

Additional documentation or context

…t replica

Mirrors the existing install preflight stop / export replica stop
pattern. If one of these commands is interrupted before its PostRun
cleanup runs, the DaemonSet (and RBAC, for check preflight) it
created is left behind in the cluster. stop lets the user clean
those up manually.

checksum is intentionally left out: its Cleanup() is a no-op since
it only patches the Volume CR directly and creates no cluster
resources that could be orphaned.

Issue longhorn/longhorn#9311

Signed-off-by: Nicolás Streitenberger <mnstreitenberger@gmail.com>
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.

1 participant