cli: Introduce flag --all
for remove-rule
#976
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#976
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be better to introduce a method to drop all local overrides. So, we could introduce a flag
-all
forremove-rule
omitting chain-ids. That definitely will make user experience better.To implement this flag we can list targets, list all chains for targets and remove them.
NOTE: Control API does not let to recieve a batch of chains in a request: so, one chain per one request.
Introduce flagto cli: Introduce flag--all
forremove-rule
infrostfs-cli
--all
forremove-rule
Introduced flag
--all
forcli
andadm
for commands:frostfs-cli control remove-rule --endpoint ... -c cfg.yml --address ... --target-type namespace --target-name nsname --all
frostfs-adm morph ape rm-rule-chain -c cfg.yml -r ... --target-type container --target-name "TEST0000" --chain-name s3 --all