Skip to content

Commit e350015

Browse files
Merge pull request #1322 from planetscale/vtgate-cli
Add vtgate resize commands
2 parents 855a317 + d79eeeb commit e350015

10 files changed

Lines changed: 1422 additions & 2 deletions

File tree

internal/cmd/branch/branch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func BranchCmd(ch *cmdutil.Helper) *cobra.Command {
2626
cmd.AddCommand(ListCmd(ch))
2727
cmd.AddCommand(DeleteCmd(ch))
2828
cmd.AddCommand(ResizeCmd(ch))
29+
cmd.AddCommand(VtgateCmd(ch))
2930
cmd.AddCommand(ParametersCmd(ch))
3031
cmd.AddCommand(ShowCmd(ch))
3132
cmd.AddCommand(SwitchCmd(ch))

internal/cmd/branch/resize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ and "pscale branch resize cancel" to cancel it while queued.`,
7070
}
7171

7272
if db.Kind == "mysql" {
73-
return fmt.Errorf("branch resize is only supported for PostgreSQL databases. To resize a MySQL keyspace, use %s", printer.BoldBlue("pscale keyspace resize"))
73+
return fmt.Errorf("branch resize is only supported for PostgreSQL databases. To resize a MySQL keyspace, use %s. To resize VTGates, use %s", printer.BoldBlue("pscale keyspace resize"), printer.BoldBlue("pscale branch vtgate resize"))
7474
}
7575

7676
restartParams, err := preflightParameters(ctx, client, ch.Config.Organization, database, branch, parameters)

0 commit comments

Comments
 (0)