Skip to content

Commit f10503e

Browse files
committed
feat(phase-2): add admin cluster info and heal commands
1 parent 1003710 commit f10503e

12 files changed

Lines changed: 2501 additions & 30 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Breaking
11+
12+
- Updated JSON output schema to `schemas/output_v2.json` to cover admin cluster info and heal outputs
13+
1014
### Added
1115

1216
- Shell completion generation command (`rc completions <shell>`)
1317
- Supports bash, zsh, fish, and powershell
1418
- Golden test infrastructure using insta for snapshot testing
1519
- `RC_CONFIG_DIR` environment variable for custom config location
1620
- MIT and Apache-2.0 license files
21+
- Admin cluster commands (`rc admin info` and `rc admin heal`)
1722

1823
### Changed
1924

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,31 @@ rc admin policy attach local/ readonly --user newuser
117117
rc admin service-account add local/ myuser
118118
```
119119

120+
### Admin Operations (Cluster)
121+
122+
```bash
123+
# Cluster information
124+
rc admin info cluster local
125+
rc admin info server local
126+
rc admin info disk local --offline
127+
128+
# Heal operations
129+
rc admin heal status local
130+
rc admin heal start local --bucket mybucket --scan-mode deep
131+
rc admin heal start local --dry-run
132+
rc admin heal stop local
133+
134+
# JSON output
135+
rc admin info cluster local --json
136+
rc admin heal status local --json
137+
```
138+
120139
## Command Overview
121140

122141
| Command | Description |
123142
|---------|-------------|
124143
| `alias` | Manage storage service aliases |
125-
| `admin` | Manage IAM users, policies, groups, and service accounts |
144+
| `admin` | Manage IAM users, policies, groups, service accounts, and cluster operations |
126145
| `ls` | List buckets or objects |
127146
| `mb` | Make bucket |
128147
| `rb` | Remove bucket |
@@ -150,6 +169,8 @@ rc admin service-account add local/ myuser
150169
| `admin policy` | Manage IAM policies (create, remove, list, info, attach, detach) |
151170
| `admin group` | Manage IAM groups (add, remove, list, info, member) |
152171
| `admin service-account` | Manage service accounts (add, remove, list, info, edit) |
172+
| `admin info` | Display cluster information (cluster, server, disk) |
173+
| `admin heal` | Manage cluster healing operations (status, start, stop) |
153174

154175
## Output Format
155176

0 commit comments

Comments
 (0)