diff --git a/cmd/scw/testdata/test-all-usage-rdb-instance-upgrade-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-instance-upgrade-usage.golden index 6758206195..6658cde8d0 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-instance-upgrade-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-instance-upgrade-usage.golden @@ -6,13 +6,15 @@ USAGE: scw rdb instance upgrade [arg=value ...] ARGS: - instance-id UUID of the Database Instance you want to upgrade - [node-type] Node type of the Database Instance you want to upgrade to - [enable-ha] Defines whether or not high availability should be enabled on the Database Instance - [volume-size] Increase your block storage volume size - [volume-type] Change your Database Instance storage type (lssd | bssd | sbs_5k | sbs_15k) - [upgradable-version-id] Update your database engine to a newer version - [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) + instance-id UUID of the Database Instance you want to upgrade + [node-type] Node type of the Database Instance you want to upgrade to + [enable-ha] Defines whether or not high availability should be enabled on the Database Instance + [volume-size] Increase your block storage volume size + [volume-type] Change your Database Instance storage type (lssd | bssd | sbs_5k | sbs_15k) + [upgradable-version-id] Update your database engine to a newer version + [major-upgrade-workflow.upgradable-version-id] Update your database engine to a newer version + [major-upgrade-workflow.with-endpoints] Include endpoint during the migration + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: -h, --help help for upgrade diff --git a/docs/commands/rdb.md b/docs/commands/rdb.md index f323640f6c..749124a2a1 100644 --- a/docs/commands/rdb.md +++ b/docs/commands/rdb.md @@ -918,6 +918,8 @@ scw rdb instance upgrade [arg=value ...] | volume-size | | Increase your block storage volume size | | volume-type | One of: `lssd`, `bssd`, `sbs_5k`, `sbs_15k` | Change your Database Instance storage type | | upgradable-version-id | | Update your database engine to a newer version | +| major-upgrade-workflow.upgradable-version-id | | Update your database engine to a newer version | +| major-upgrade-workflow.with-endpoints | | Include endpoint during the migration | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | diff --git a/go.mod b/go.mod index 649e0e1b83..4118559c7f 100644 --- a/go.mod +++ b/go.mod @@ -24,7 +24,7 @@ require ( github.com/moby/buildkit v0.11.6 github.com/opencontainers/go-digest v1.0.0 github.com/pkg/errors v0.9.1 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231024135134-9017dc9053be + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231025134805-9d4d800ad0ce github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.7.0 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index 5ff941ee82..fc177559ac 100644 --- a/go.sum +++ b/go.sum @@ -487,8 +487,8 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231024135134-9017dc9053be h1:VmT6+vJNYE6dqBU9RHferKsXg2dGVCC0FFUvJbuO5Zk= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231024135134-9017dc9053be/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231025134805-9d4d800ad0ce h1:h2AZP6SVZbUtuq1hgmKwAT80FHkSwNSyLl4zRHhn0NI= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231025134805-9d4d800ad0ce/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= diff --git a/internal/namespaces/rdb/v1/rdb_cli.go b/internal/namespaces/rdb/v1/rdb_cli.go index 8748c6ff61..19dc302c65 100644 --- a/internal/namespaces/rdb/v1/rdb_cli.go +++ b/internal/namespaces/rdb/v1/rdb_cli.go @@ -688,6 +688,20 @@ func rdbInstanceUpgrade() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "major-upgrade-workflow.upgradable-version-id", + Short: `Update your database engine to a newer version`, + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "major-upgrade-workflow.with-endpoints", + Short: `Include endpoint during the migration`, + Required: false, + Deprecated: false, + Positional: false, + }, core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {