adm: Make --namespace flag required #1026
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 project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1026
Loading…
Reference in a new issue
No description provided.
Delete branch "achuprov/frostfs-node:bugfix/namespace_require"
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?
Close #1023
Before:
After:
Signed-off-by: Alexander Chuprov a.chuprov@yadro.com
[#1023] adm: Make --namespace flag requiredto adm: Make --namespace flag requiredfca213a7af
to577aad40b7
@ -155,6 +155,7 @@ func initFrostfsIDCreateNamespaceCmd() {
frostfsidCreateNamespaceCmd.Flags().StringP(commonflags.EndpointFlag, commonflags.EndpointFlagShort, "", commonflags.EndpointFlagDesc)
frostfsidCreateNamespaceCmd.Flags().String(namespaceFlag, "", "Namespace name to create")
frostfsidCreateNamespaceCmd.Flags().String(commonflags.AlphabetWalletsFlag, "", commonflags.AlphabetWalletsFlagDesc)
_ = frostfsidCreateNamespaceCmd.MarkFlagRequired(namespaceFlag)
It should be required only for
create-namespace
, other commands can useroot
namespace by default (which is, quite conveniently, also an empty string).cc @aarifullin
Other operations should pass on dev-env without namespace, could you recheck this?
577aad40b7
tof45490cd7c
f45490cd7c
toe5d18e7a85