Skip to content

feat(admin): add manual transition job controls - #334

Merged
houseme merged 1 commit into
mainfrom
houseme/ilm-manual-transition-status-wait-cancel-v2
Jul 26, 2026
Merged

feat(admin): add manual transition job controls#334
houseme merged 1 commit into
mainfrom
houseme/ilm-manual-transition-status-wait-cancel-v2

Conversation

@houseme

@houseme houseme commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add backend-backed rc admin ilm transition run --async job submission while preserving the existing synchronous run behavior.
  • Add rc admin ilm transition status, cancel, and wait commands that use only the RustFS admin job endpoints.
  • Extend the core/S3 admin client and typed job response model, including queue/report fields and deterministic CLI JSON/human output.

Testing

  • cargo fmt --all
  • cargo fmt --all --check
  • cargo clippy --workspace -- -D warnings
  • cargo test -p rustfs-cli --test admin_ilm
  • cargo test -p rustfs-cli commands::admin::tests::test_parse_admin_ilm_transition
  • cargo test --workspace
  • git diff --check

Notes

  • Job state remains backend-authoritative; the CLI does not keep local fake transition state.
  • Status, cancel, wait, and async run paths preserve existing admin error mapping for not found, unauthorized, conflict, and unsupported responses.

Closes #1480

Add rc admin ilm transition async job controls for status, wait, and cancel operations while preserving the existing synchronous run contract.

Co-Authored-By: heihutu <[email protected]>
@houseme
houseme marked this pull request as ready for review July 26, 2026 02:06
@houseme
houseme merged commit 53798c0 into main Jul 26, 2026
17 checks passed
@houseme
houseme deleted the houseme/ilm-manual-transition-status-wait-cancel-v2 branch July 26, 2026 02:07
@houseme
houseme restored the houseme/ilm-manual-transition-status-wait-cancel-v2 branch July 26, 2026 02:44
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