forked from TrueCloudLab/frostfs-node
[#8] cli: Set flag mode
required for control shards set-mode
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
2540598779
commit
5a9d6a09d8
2 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ Changelog for FrostFS Node
|
||||||
- Fetching blobovnicza objects that not found in write-cache (#2206)
|
- Fetching blobovnicza objects that not found in write-cache (#2206)
|
||||||
- Do not search for the small objects in FSTree (#2206)
|
- Do not search for the small objects in FSTree (#2206)
|
||||||
- Correct status error for expired session token (#2207)
|
- Correct status error for expired session token (#2207)
|
||||||
|
- Set flag `mode` required for `frostfs-cli control shards set-mode` (#8)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
### Updated
|
### Updated
|
||||||
|
|
|
@ -93,6 +93,7 @@ func initControlSetShardModeCmd() {
|
||||||
flags.String(shardModeFlag, "",
|
flags.String(shardModeFlag, "",
|
||||||
fmt.Sprintf("New shard mode (%s)", strings.Join(modes, ", ")),
|
fmt.Sprintf("New shard mode (%s)", strings.Join(modes, ", ")),
|
||||||
)
|
)
|
||||||
|
_ = setShardModeCmd.MarkFlagRequired(shardModeFlag)
|
||||||
flags.Bool(shardClearErrorsFlag, false, "Set shard error count to 0")
|
flags.Bool(shardClearErrorsFlag, false, "Set shard error count to 0")
|
||||||
|
|
||||||
setShardModeCmd.MarkFlagsMutuallyExclusive(shardIDFlag, shardAllFlag)
|
setShardModeCmd.MarkFlagsMutuallyExclusive(shardIDFlag, shardAllFlag)
|
||||||
|
|
Loading…
Reference in a new issue