Skip to content

Commit 47f482b

Browse files
authored
feat(rdb): expose SBS IOPS to clients (#3407)
1 parent 4389648 commit 47f482b

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

cmd/scw/testdata/test-all-usage-rdb-instance-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ARGS:
1818
[tags.{index}] Tags to apply to the Database Instance
1919
[init-settings.{index}.name]
2020
[init-settings.{index}.value]
21-
[volume-type] Type of volume where data is stored (lssd, bssd, ...) (lssd | bssd | sbs)
21+
[volume-type] Type of volume where data is stored (lssd, bssd, ...) (lssd | bssd | sbs_5k | sbs_15k)
2222
[volume-size] Volume size when volume_type is not lssd
2323
[init-endpoints.{index}.private-network.private-network-id] UUID of the Private Network to be connected to the Database Instance
2424
[init-endpoints.{index}.private-network.service-ip] Endpoint IPv4 address with a CIDR notation. Refer to the official Scaleway documentation to learn more about IP and subnet limitations.

cmd/scw/testdata/test-all-usage-rdb-instance-upgrade-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
[node-type] Node type of the Database Instance you want to upgrade to
1111
[enable-ha] Defines whether or not high availability should be enabled on the Database Instance
1212
[volume-size] Increase your block storage volume size
13-
[volume-type] Change your Database Instance storage type (lssd | bssd | sbs)
13+
[volume-type] Change your Database Instance storage type (lssd | bssd | sbs_5k | sbs_15k)
1414
[upgradable-version-id] Update your database engine to a newer version
1515
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1616

docs/commands/rdb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ scw rdb instance create [arg=value ...]
696696
| tags.{index} | | Tags to apply to the Database Instance |
697697
| init-settings.{index}.name | | |
698698
| init-settings.{index}.value | | |
699-
| volume-type | One of: `lssd`, `bssd`, `sbs` | Type of volume where data is stored (lssd, bssd, ...) |
699+
| volume-type | One of: `lssd`, `bssd`, `sbs_5k`, `sbs_15k` | Type of volume where data is stored (lssd, bssd, ...) |
700700
| volume-size | | Volume size when volume_type is not lssd |
701701
| init-endpoints.{index}.private-network.private-network-id | | UUID of the Private Network to be connected to the Database Instance |
702702
| init-endpoints.{index}.private-network.service-ip | | Endpoint IPv4 address with a CIDR notation. Refer to the official Scaleway documentation to learn more about IP and subnet limitations. |
@@ -922,7 +922,7 @@ scw rdb instance upgrade <instance-id ...> [arg=value ...]
922922
| node-type | | Node type of the Database Instance you want to upgrade to |
923923
| enable-ha | | Defines whether or not high availability should be enabled on the Database Instance |
924924
| volume-size | | Increase your block storage volume size |
925-
| volume-type | One of: `lssd`, `bssd`, `sbs` | Change your Database Instance storage type |
925+
| volume-type | One of: `lssd`, `bssd`, `sbs_5k`, `sbs_15k` | Change your Database Instance storage type |
926926
| upgradable-version-id | | Update your database engine to a newer version |
927927
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
928928

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/moby/buildkit v0.11.6
2525
github.com/opencontainers/go-digest v1.0.0
2626
github.com/pkg/errors v0.9.1
27-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010120217-5fe0fb5cff14
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010133302-514d331632dd
2828
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2929
github.com/spf13/cobra v1.7.0
3030
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN
487487
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
488488
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
489489
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
490-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010120217-5fe0fb5cff14 h1:kLwRvD5QQSG4J1SqbqD5obtMJGa96tvMCK0BrYoQI9c=
491-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010120217-5fe0fb5cff14/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
490+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010133302-514d331632dd h1:qlJ+AW1hm5oKc/mZd//akW23urxhM9YeKi8gNKe969I=
491+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20231010133302-514d331632dd/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
492492
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
493493
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
494494
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/rdb/v1/rdb_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ func rdbInstanceUpgrade() *core.Command {
691691
Required: false,
692692
Deprecated: false,
693693
Positional: false,
694-
EnumValues: []string{"lssd", "bssd", "sbs"},
694+
EnumValues: []string{"lssd", "bssd", "sbs_5k", "sbs_15k"},
695695
},
696696
{
697697
Name: "upgradable-version-id",
@@ -929,7 +929,7 @@ func rdbInstanceCreate() *core.Command {
929929
Required: false,
930930
Deprecated: false,
931931
Positional: false,
932-
EnumValues: []string{"lssd", "bssd", "sbs"},
932+
EnumValues: []string{"lssd", "bssd", "sbs_5k", "sbs_15k"},
933933
},
934934
{
935935
Name: "volume-size",

0 commit comments

Comments
 (0)