Skip to content

Commit e9c3c13

Browse files
committed
feat: update generated APIs
1 parent 4dbec5b commit e9c3c13

File tree

6 files changed

+19
-3
lines changed

6 files changed

+19
-3
lines changed

cmd/scw/testdata/test-all-usage-container-container-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ARGS:
2626
[local-storage-limit] Local storage limit of the container (in MB)
2727
[scaling-option.concurrent-requests-threshold]
2828
[scaling-option.cpu-usage-threshold]
29+
[scaling-option.memory-usage-threshold]
2930
[health-check.http.path] Path to use for the HTTP health check.
3031
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3132
[health-check.interval] Period between health checks.

cmd/scw/testdata/test-all-usage-container-container-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ARGS:
2626
[local-storage-limit] Local storage limit of the container (in MB)
2727
[scaling-option.concurrent-requests-threshold]
2828
[scaling-option.cpu-usage-threshold]
29+
[scaling-option.memory-usage-threshold]
2930
[health-check.http.path] Path to use for the HTTP health check.
3031
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3132
[health-check.interval] Period between health checks.

docs/commands/container.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ scw container container create [arg=value ...]
8181
| local-storage-limit | | Local storage limit of the container (in MB) |
8282
| scaling-option.concurrent-requests-threshold | | |
8383
| scaling-option.cpu-usage-threshold | | |
84+
| scaling-option.memory-usage-threshold | | |
8485
| health-check.http.path | | Path to use for the HTTP health check. |
8586
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
8687
| health-check.interval | | Period between health checks. |
@@ -209,6 +210,7 @@ scw container container update <container-id ...> [arg=value ...]
209210
| local-storage-limit | | Local storage limit of the container (in MB) |
210211
| scaling-option.concurrent-requests-threshold | | |
211212
| scaling-option.cpu-usage-threshold | | |
213+
| scaling-option.memory-usage-threshold | | |
212214
| health-check.http.path | | Path to use for the HTTP health check. |
213215
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
214216
| health-check.interval | | Period between health checks. |

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.20241105133405-807ee113e454
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.20241105133405-807ee113e454 h1:RTzL4TzeyAZkOopN5zM99md3rHOFHFKIsnsuL6yxc7s=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.30.0.20241105133405-807ee113e454/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/container/v1beta1/container_cli.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,12 @@ func containerContainerCreate() *core.Command {
624624
Deprecated: false,
625625
Positional: false,
626626
},
627+
{
628+
Name: "scaling-option.memory-usage-threshold",
629+
Required: false,
630+
Deprecated: false,
631+
Positional: false,
632+
},
627633
{
628634
Name: "health-check.http.path",
629635
Short: `Path to use for the HTTP health check.`,
@@ -813,6 +819,12 @@ func containerContainerUpdate() *core.Command {
813819
Deprecated: false,
814820
Positional: false,
815821
},
822+
{
823+
Name: "scaling-option.memory-usage-threshold",
824+
Required: false,
825+
Deprecated: false,
826+
Positional: false,
827+
},
816828
{
817829
Name: "health-check.http.path",
818830
Short: `Path to use for the HTTP health check.`,

0 commit comments

Comments
 (0)