Skip to content

Commit 772e982

Browse files
authored
feat(container): add local storage limit (#4021)
1 parent d3bd727 commit 772e982

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
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
@@ -24,6 +24,7 @@ ARGS:
2424
[secret-environment-variables.{index}.value]
2525
[http-option=enabled] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
2626
[sandbox] Execution environment of the container (unknown_sandbox | v1 | v2)
27+
[local-storage-limit] Local storage limit of the container (in MB)
2728
[deploy=true] Deploy container after creation
2829
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2930

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
@@ -24,6 +24,7 @@ ARGS:
2424
[secret-environment-variables.{index}.value]
2525
[http-option=enabled] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
2626
[sandbox] Execution environment of the container (unknown_sandbox | v1 | v2)
27+
[local-storage-limit] Local storage limit of the container (in MB)
2728
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2829

2930
FLAGS:

docs/commands/container.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ scw container container create [arg=value ...]
7878
| secret-environment-variables.{index}.value | | |
7979
| http-option | Default: `enabled`<br />One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
8080
| sandbox | One of: `unknown_sandbox`, `v1`, `v2` | Execution environment of the container |
81+
| local-storage-limit | | Local storage limit of the container (in MB) |
8182
| deploy | Default: `true` | Deploy container after creation |
8283
| 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 |
8384

@@ -200,6 +201,7 @@ scw container container update <container-id ...> [arg=value ...]
200201
| secret-environment-variables.{index}.value | | |
201202
| http-option | Default: `enabled`<br />One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
202203
| sandbox | One of: `unknown_sandbox`, `v1`, `v2` | Execution environment of the container |
204+
| local-storage-limit | | Local storage limit of the container (in MB) |
203205
| 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 |
204206

205207

internal/namespaces/container/v1beta1/container_cli.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,13 @@ func containerContainerCreate() *core.Command {
591591
Positional: false,
592592
EnumValues: []string{"unknown_sandbox", "v1", "v2"},
593593
},
594+
{
595+
Name: "local-storage-limit",
596+
Short: `Local storage limit of the container (in MB)`,
597+
Required: false,
598+
Deprecated: false,
599+
Positional: false,
600+
},
594601
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
595602
},
596603
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
@@ -741,6 +748,13 @@ func containerContainerUpdate() *core.Command {
741748
Positional: false,
742749
EnumValues: []string{"unknown_sandbox", "v1", "v2"},
743750
},
751+
{
752+
Name: "local-storage-limit",
753+
Short: `Local storage limit of the container (in MB)`,
754+
Required: false,
755+
Deprecated: false,
756+
Positional: false,
757+
},
744758
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
745759
},
746760
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)