adm: Support frostfsid operations #908
No reviewers
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 milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#908
Loading…
Reference in a new issue
No description provided.
Delete branch "dkirillov/frostfs-node:feature/adm_interact_with_frostfsid"
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?
Add frostfsid interactions:
In operations where namespace is required to invoke method if flag
namespace
isn't provide the default one (empty namespace) will be used1f118dc161
to18538a85bf
WIP: [#XX] adm: Support frostfsid basic operationsto WIP: [#908] adm: Support frostfsid basic operations18538a85bf
to695706e479
695706e479
toeaff92614b
WIP: [#908] adm: Support frostfsid basic operationsto WIP: [#908] adm: Support frostfsid operationseaff92614b
tobe04d69538
WIP: [#908] adm: Support frostfsid operationsto [#908] adm: Support frostfsid operationsMaybe add some placeholder for root namespace?
Why there are no
delete-group
command?[#908] adm: Support frostfsid operationsto adm: Support frostfsid operations@ -0,0 +196,4 @@
frostfsidListGroupSubjectsCmd.Flags().Bool(includeNamesFlag, false, "Whether include subject name (require additional requests)")
}
func frostfsidCreateNamespace(cmd *cobra.Command, _ []string) {
Why is it
frostfsID
in some functions andfrostfsid
in others?@ -0,0 +216,4 @@
sort.Slice(namespaces, func(i, j int) bool { return namespaces[i].Name < namespaces[j].Name })
for _, namespace := range namespaces {
cmd.Printf("%q\n", namespace.Name)
Why is it
%q
and not%s
? Makes sense to take spaces into account and display empty strings.The latter is addressed by @dstepanov-yadro comment and the former should not be popular, especially with some validation -- namespace creation is not something an arbitrary user can do.
%s
is also easier to process with bash scripts.be04d69538
to6d753003d8
6d753003d8
tod62bdec373
d62bdec373
to5f67387506
5f67387506
to29da568dca