Skip to content

Commit d509329

Browse files
scaleway-botyfodil
andauthored
feat(rdb): add sbs volume type (#3379)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent acbdebd commit d509329

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
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)
21+
[volume-type] Type of volume where data is stored (lssd, bssd, ...) (lssd | bssd | sbs)
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)
13+
[volume-type] Change your Database Instance storage type (lssd | bssd | sbs)
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` | Type of volume where data is stored (lssd, bssd, ...) |
699+
| volume-type | One of: `lssd`, `bssd`, `sbs` | 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` | Change your Database Instance storage type |
925+
| volume-type | One of: `lssd`, `bssd`, `sbs` | 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

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"},
694+
EnumValues: []string{"lssd", "bssd", "sbs"},
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"},
932+
EnumValues: []string{"lssd", "bssd", "sbs"},
933933
},
934934
{
935935
Name: "volume-size",

0 commit comments

Comments
 (0)