Skip to content

feat(plugin): add node delete command and opts#835

Open
niladrih wants to merge 2 commits intodevelopfrom
node-delete-plugin
Open

feat(plugin): add node delete command and opts#835
niladrih wants to merge 2 commits intodevelopfrom
node-delete-plugin

Conversation

@niladrih
Copy link
Copy Markdown
Member

Changes:

  • Adds node delete command and opts
  • Change --cleanup-cr to --cleanup-dsp

Comment thread k8s/plugin/src/resources/mod.rs
Comment thread k8s/plugin/src/resources/mod.rs Outdated
Comment thread k8s/plugin/src/resources/diskpool_cleanup.rs Outdated
Comment thread k8s/plugin/src/resources/diskpool_cleanup.rs Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a delete node command to the Kubernetes plugin with optional DiskPool CR cleanup, and renames the pool cleanup flag from --cleanup-cr to --cleanup-dsp.

Changes:

  • Introduces delete node support (purge) with optional concurrent DiskPool CR cleanup (--cleanup-dsp).
  • Refactors DiskPool cleanup CLI options into a shared CleanupDspArgs used by both pool and node delete flows.
  • Adds Kubernetes-side listing of DiskPool CRs by node and a high-level cleanup_dsp helper to apply timeout + not-found semantics.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
k8s/plugin/src/resources/mod.rs Adds node delete CLI wiring and integrates --cleanup-dsp behavior for pool/node deletes.
k8s/plugin/src/resources/diskpool_cleanup.rs Adds DiskPool CR listing-by-node and a higher-level cleanup wrapper used by delete commands.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread k8s/plugin/src/resources/mod.rs Outdated
Comment thread k8s/plugin/src/resources/mod.rs
Comment thread k8s/plugin/src/resources/mod.rs Outdated
Comment thread k8s/plugin/src/resources/mod.rs Outdated
@niladrih niladrih force-pushed the node-delete-plugin branch 2 times, most recently from 5740060 to 81e59c8 Compare April 16, 2026 12:35
@niladrih niladrih requested a review from Copilot April 16, 2026 12:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread k8s/plugin/src/resources/mod.rs Outdated
Comment thread k8s/plugin/src/resources/diskpool_cleanup.rs
Comment thread k8s/plugin/src/resources/mod.rs Outdated
Changes:
- Adds node delete command and opts
- Change --cleanup-cr to --cleanup-dsp

Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
@niladrih niladrih force-pushed the node-delete-plugin branch from 81e59c8 to 154949d Compare April 16, 2026 12:52
@niladrih
Copy link
Copy Markdown
Member Author

bors merge

@bors-openebs-mayastor
Copy link
Copy Markdown
Contributor

🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

bors-openebs-mayastor bot pushed a commit that referenced this pull request Apr 16, 2026
835: feat(plugin): add node delete command and opts r=niladrih a=niladrih

Changes:
- Adds node delete command and opts
- Change --cleanup-cr to --cleanup-dsp

Co-authored-by: Niladri Halder <niladri.halder26@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.

4 participants