Skip to content

Commit 13fcab2

Browse files
committed
feat: update generated APIs
1 parent 6bc0cd4 commit 13fcab2

File tree

8 files changed

+11
-9
lines changed

8 files changed

+11
-9
lines changed

cmd/scw/testdata/test-all-usage-block-volume-list-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ARGS:
1010
[project-id] Filter by Project ID
1111
[name] Filter the return volumes by their names
1212
[product-resource-id] Filter by a product resource ID linked to this volume (such as an Instance ID)
13+
[tags.{index}] Filter by tags. Only volumes with one or more matching tags will be returned
1314
[organization-id] Filter by Organization ID
1415
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3 | all)
1516

cmd/scw/testdata/test-all-usage-k8s-cluster-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARGS:
3434
[pools.{index}.upgrade-policy.max-unavailable] The maximum number of nodes that can be not ready at the same time
3535
[pools.{index}.upgrade-policy.max-surge] The maximum number of nodes to be created during the upgrade
3636
[pools.{index}.zone] Zone in which the pool's nodes will be spawned
37-
[pools.{index}.root-volume-type] Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster (default_volume_type | l_ssd | b_ssd)
37+
[pools.{index}.root-volume-type] Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster (default_volume_type | l_ssd | b_ssd | sbs_5k | sbs_15k)
3838
[pools.{index}.root-volume-size] System volume disk size
3939
[pools.{index}.public-ip-disabled] Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway
4040
[autoscaler-config.scale-down-disabled] Disable the cluster autoscaler

cmd/scw/testdata/test-all-usage-k8s-pool-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ARGS:
3131
[upgrade-policy.max-unavailable]
3232
[upgrade-policy.max-surge]
3333
[zone] Zone in which the pool's nodes will be spawned
34-
[root-volume-type] Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster (default_volume_type | l_ssd | b_ssd)
34+
[root-volume-type] Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster (default_volume_type | l_ssd | b_ssd | sbs_5k | sbs_15k)
3535
[root-volume-size] System volume disk size
3636
[public-ip-disabled] Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway
3737
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

docs/commands/block.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ scw block volume list [arg=value ...]
275275
| project-id | | Filter by Project ID |
276276
| name | | Filter the return volumes by their names |
277277
| product-resource-id | | Filter by a product resource ID linked to this volume (such as an Instance ID) |
278+
| tags.{index} | | Filter by tags. Only volumes with one or more matching tags will be returned |
278279
| organization-id | | Filter by Organization ID |
279280
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3`, `all` | Zone to target. If none is passed will use default zone from the config |
280281

docs/commands/k8s.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ scw k8s cluster create [arg=value ...]
9898
| pools.{index}.upgrade-policy.max-unavailable | | The maximum number of nodes that can be not ready at the same time |
9999
| pools.{index}.upgrade-policy.max-surge | | The maximum number of nodes to be created during the upgrade |
100100
| pools.{index}.zone | | Zone in which the pool's nodes will be spawned |
101-
| pools.{index}.root-volume-type | One of: `default_volume_type`, `l_ssd`, `b_ssd` | Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster |
101+
| pools.{index}.root-volume-type | One of: `default_volume_type`, `l_ssd`, `b_ssd`, `sbs_5k`, `sbs_15k` | Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster |
102102
| pools.{index}.root-volume-size | | System volume disk size |
103103
| pools.{index}.public-ip-disabled | | Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway |
104104
| autoscaler-config.scale-down-disabled | | Disable the cluster autoscaler |
@@ -904,7 +904,7 @@ scw k8s pool create [arg=value ...]
904904
| upgrade-policy.max-unavailable | | |
905905
| upgrade-policy.max-surge | | |
906906
| zone | | Zone in which the pool's nodes will be spawned |
907-
| root-volume-type | One of: `default_volume_type`, `l_ssd`, `b_ssd` | Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster |
907+
| root-volume-type | One of: `default_volume_type`, `l_ssd`, `b_ssd`, `sbs_5k`, `sbs_15k` | Defines the system volume disk type. Two different types of volume (`volume_type`) are provided: `l_ssd` is a local block storage which means your system is stored locally on your node's hypervisor. `b_ssd` is a remote block storage which means your system is stored on a centralized and resilient cluster |
908908
| root-volume-size | | System volume disk size |
909909
| public-ip-disabled | | Defines if the public IP should be removed from Nodes. To use this feature, your Cluster must have an attached Private Network set up with a Public Gateway |
910910
| 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 |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ require (
2626
github.com/mattn/go-isatty v0.0.20
2727
github.com/moby/buildkit v0.13.2
2828
github.com/opencontainers/go-digest v1.0.0
29-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241104173714-b6b9e5455a0e
29+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241107124736-e84e5b2bdf25
3030
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3131
github.com/spf13/cobra v1.8.1
3232
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
466466
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
467467
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
468468
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
469-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241104173714-b6b9e5455a0e h1:BKhmO3BK1mI9K1DFjLHxOa7dSETU2QWksMhfUAmfJLU=
470-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241104173714-b6b9e5455a0e/go.mod h1:3jrRJM7638J+P33hKy9MBvfOBxNo8pEGNQQoIv65Ihg=
469+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241107124736-e84e5b2bdf25 h1:0z9rTKVzJRDBWp/d/ZABKXNhytQZyznH4EXo+evEgMY=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241107124736-e84e5b2bdf25/go.mod h1:3jrRJM7638J+P33hKy9MBvfOBxNo8pEGNQQoIv65Ihg=
471471
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
472472
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
473473
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/k8s/v1/k8s_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ func k8sClusterCreate() *core.Command {
418418
Required: false,
419419
Deprecated: false,
420420
Positional: false,
421-
EnumValues: []string{"default_volume_type", "l_ssd", "b_ssd"},
421+
EnumValues: []string{"default_volume_type", "l_ssd", "b_ssd", "sbs_5k", "sbs_15k"},
422422
},
423423
{
424424
Name: "pools.{index}.root-volume-size",
@@ -1456,7 +1456,7 @@ func k8sPoolCreate() *core.Command {
14561456
Required: false,
14571457
Deprecated: false,
14581458
Positional: false,
1459-
EnumValues: []string{"default_volume_type", "l_ssd", "b_ssd"},
1459+
EnumValues: []string{"default_volume_type", "l_ssd", "b_ssd", "sbs_5k", "sbs_15k"},
14601460
},
14611461
{
14621462
Name: "root-volume-size",

0 commit comments

Comments
 (0)