Skip to content

Commit ced066f

Browse files
committed
initial
1 parent cea8e19 commit ced066f

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

app/namespace.go

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -650,11 +650,10 @@ func getCreateNamespaceFlags() []cli.Flag {
650650
codecPassAccessTokenFlag,
651651
codecIncludeCredentialsFlag,
652652
&cli.StringFlag{
653-
Name: cloudProviderFlagName,
654-
Usage: `Cloud provider for the namespace to be created for, currently support [aws, gcp]. For this version, if not specified, we default to aws`,
655-
Aliases: []string{"cp"},
656-
// this is a temporary solution, we will have a follow up version update to make the cloud provider mandatory
657-
Value: CloudProviderAWS,
653+
Name: cloudProviderFlagName,
654+
Usage: `Cloud provider for the namespace to be created for, currently supports one of [aws, gcp].`,
655+
Aliases: []string{"cp"},
656+
Required: true,
658657
},
659658
&cli.StringSliceFlag{
660659
Name: tagFlagName,
@@ -866,9 +865,9 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut,
866865
Required: true,
867866
},
868867
&cli.StringFlag{
869-
Name: cloudProviderFlagName,
870-
Usage: "The cloud provider of the region. Default: aws",
871-
Value: CloudProviderAWS,
868+
Name: cloudProviderFlagName,
869+
Usage: "The cloud provider of the region. One of [aws, gcp].",
870+
Required: true,
872871
},
873872
},
874873
Action: func(ctx *cli.Context) error {
@@ -893,9 +892,9 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut,
893892
Required: true,
894893
},
895894
&cli.StringFlag{
896-
Name: cloudProviderFlagName,
897-
Usage: "The cloud provider of the region. Default: aws",
898-
Value: CloudProviderAWS,
895+
Name: cloudProviderFlagName,
896+
Usage: "The cloud provider of the region. One of [aws, gcp].",
897+
Required: true,
899898
},
900899
},
901900
Action: func(ctx *cli.Context) error {
@@ -1758,9 +1757,9 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut,
17581757
Required: true,
17591758
},
17601759
&cli.StringFlag{
1761-
Name: cloudProviderFlagName,
1762-
Usage: "The cloud provider of the region. Default: aws",
1763-
Value: CloudProviderAWS,
1760+
Name: cloudProviderFlagName,
1761+
Usage: "The cloud provider of the region. One of [aws, gcp].",
1762+
Required: true,
17641763
},
17651764
},
17661765
Action: func(ctx *cli.Context) error {

0 commit comments

Comments
 (0)