Skip to content

Commit 5fe37c3

Browse files
authored
Merge branch 'main' into chocolatey_support
2 parents 6b362e2 + 35c1267 commit 5fe37c3

61 files changed

Lines changed: 9974 additions & 170 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,49 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
Create a new container in the specified region.
4-
5-
When creating a container, the `created` status is no longer used. The deployment process is started
6-
and the status is set to `pending` accordingly.
3+
Name must be unique inside the given namespace.
74

85
USAGE:
96
scw container container create [arg=value ...]
107

118
ARGS:
12-
[namespace-id] UUID of the namespace the container belongs to
13-
[name] Name of the container
14-
[environment-variables.{key}] Environment variables of the container
15-
[min-scale] Minimum number of instances to scale the container to
16-
[max-scale] Maximum number of instances to scale the container to
17-
[memory-limit] Memory limit of the container in MB
18-
[cpu-limit] CPU limit of the container in mvCPU
19-
[timeout] Processing time limit for the container
20-
[privacy] Privacy setting of the container (unknown_privacy | public | private)
21-
[description] Description of the container
22-
[registry-image] Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
23-
[protocol] Protocol the container uses (unknown_protocol | http1 | h2c)
24-
[port] Port the container listens on
25-
[secret-environment-variables.{index}.key]
26-
[secret-environment-variables.{index}.value]
27-
[http-option=enabled] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
28-
[sandbox] Execution environment of the container (unknown_sandbox | v1 | v2)
29-
[local-storage-limit] Local storage limit of the container (in MB)
30-
[scaling-option.concurrent-requests-threshold]
31-
[scaling-option.cpu-usage-threshold]
32-
[scaling-option.memory-usage-threshold]
33-
[health-check.http.path] Path to use for the HTTP health check.
34-
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
35-
[health-check.interval] Period between health checks.
36-
[tags.{index}] Tags of the Serverless Container
9+
namespace-id Unique ID of the namespace the container belongs to.
10+
name Container name.
11+
[environment-variables.{key}] Environment variables of the container.
12+
[secret-environment-variables.{key}] Secret environment variables of the container.
13+
[min-scale] Minimum number of instances to scale the container to.
14+
[max-scale] Maximum number of instances to scale the container to.
15+
[memory-limit-bytes] Memory limit of the container in bytes.
16+
[mvcpu-limit] CPU limit of the container in mvCPU.
17+
[timeout] Processing time limit for the container.
18+
[privacy=public] Privacy policy of the container. (unknown_privacy | public | private)
19+
[description] Container description.
20+
image Image reference (e.g. "rg.fr-par.scw.cloud/my-registry-namespace/image:tag").
21+
[protocol=http1] Protocol the container uses. (unknown_protocol | http1 | h2c)
22+
[port=8080] Port the container listens on.
23+
[https-connections-only=false] If true, it will allow only HTTPS connections to access your container to prevent it from being triggered by insecure connections (HTTP).
24+
[sandbox=v2] Execution environment of the container. (unknown_sandbox | v1 | v2)
25+
[local-storage-limit-bytes] Local storage limit of the container (in bytes).
26+
[scaling-option.concurrent-requests-threshold] Scale depending on the number of concurrent requests being processed per container instance. The threshold value is the number of concurrent requests above which the container will be scaled up.
27+
[scaling-option.cpu-usage-threshold] Scale depending on the CPU usage of a container instance. The threshold value is the percentage of CPU usage above which the container will be scaled up.
28+
[scaling-option.memory-usage-threshold] Scale depending on the memory usage of a container instance. The threshold value is the percentage of memory usage above which the container will be scaled up.
29+
[liveness-probe.failure-threshold] Number of consecutive failures before considering the container as unhealthy
30+
[liveness-probe.interval] Time interval between checks.
31+
[liveness-probe.timeout] Duration before the check times out.
32+
[liveness-probe.http.path] HTTP path to perform the check on.
33+
[startup-probe.failure-threshold] Number of consecutive failures before considering the container as unhealthy
34+
[startup-probe.interval] Time interval between checks.
35+
[startup-probe.timeout] Duration before the check times out.
36+
[startup-probe.http.path] HTTP path to perform the check on.
37+
[tags.{index}] Tags of the Serverless Container.
3738
[private-network-id] ID of the Private Network the container is connected to.
3839
[command.{index}] Container command
3940
[args.{index}] Container arguments
4041
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
4142

42-
DEPRECATED ARGS:
43-
[max-concurrency] Number of maximum concurrent executions of the container
44-
4543
FLAGS:
4644
-h, --help help for create
4745
--list-sub-commands List all subcommands
46+
-w, --wait wait until the container is ready
4847

4948
GLOBAL FLAGS:
5049
-c, --config string The path to the config file

β€Žcmd/scw/testdata/test-all-usage-container-container-delete-usage.goldenβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
Delete the container associated with the specified ID.
3+
It also deletes in cascade any resource linked to the container (crons, tokens, etc.).
4+
5+
This action **cannot** be undone.
46

57
USAGE:
68
scw container container delete <container-id ...> [arg=value ...]
79

810
ARGS:
9-
container-id UUID of the container to delete
11+
container-id UUID of the container to delete.
1012
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1113

1214
FLAGS:

β€Žcmd/scw/testdata/test-all-usage-container-container-list-usage.goldenβ€Ž

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
List all containers for a specified region.
3+
By default, the containers listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
4+
5+
Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, and `name`.
46

57
USAGE:
68
scw container container list [arg=value ...]
79

810
ARGS:
9-
[order-by] Order of the containers (created_at_asc | created_at_desc | name_asc | name_desc)
10-
[namespace-id] UUID of the namespace the container belongs to
11-
[name] Name of the container
12-
[project-id] UUID of the Project the container belongs to
13-
[organization-id] UUID of the Organization the container belongs to
11+
[order-by] (created_at_asc | created_at_desc | name_asc | name_desc)
12+
[project-id]
13+
[namespace-id]
14+
[name]
15+
[organization-id]
1416
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1517

1618
FLAGS:
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
Performs a rollout of the container by creating new instances with the latest image version and terminating the old instances.
4+
When using mutable registry image references (e.g. `my-registry-namespace/image:tag`), this endpoint can be used to force the container to use
5+
the most recent image version available in the registry.
6+
7+
USAGE:
8+
scw container container redeploy <container-id ...> [arg=value ...]
9+
10+
ARGS:
11+
container-id ID of the container to redeploy.
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
13+
14+
FLAGS:
15+
-h, --help help for redeploy
16+
--list-sub-commands List all subcommands
17+
-w, --wait wait until the container is ready
18+
19+
GLOBAL FLAGS:
20+
-c, --config string The path to the config file
21+
-D, --debug Enable debug mode
22+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
23+
-p, --profile string The config profile to use

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

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,48 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
Update the container associated with the specified ID.
4-
5-
When updating a container, the container is automatically redeployed to apply the changes.
6-
7-
Warning: The `redeploy` field has been deprecated. An update now always redeploys the container.
3+
Only fields present in the request are updated; others are left untouched.
84

95
USAGE:
106
scw container container update <container-id ...> [arg=value ...]
117

128
ARGS:
13-
container-id UUID of the container to update
14-
[environment-variables.{key}] Environment variables of the container
15-
[min-scale] Minimum number of instances to scale the container to
16-
[max-scale] Maximum number of instances to scale the container to
17-
[memory-limit] Memory limit of the container in MB
18-
[cpu-limit] CPU limit of the container in mvCPU
19-
[timeout] Processing time limit for the container
20-
[privacy] Privacy settings of the container (unknown_privacy | public | private)
21-
[description] Description of the container
22-
[registry-image] Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
23-
[protocol] Protocol the container uses (unknown_protocol | http1 | h2c)
24-
[port] Port the container listens on
25-
[secret-environment-variables.{index}.key]
26-
[secret-environment-variables.{index}.value]
27-
[http-option] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
28-
[sandbox] Execution environment of the container (unknown_sandbox | v1 | v2)
29-
[local-storage-limit] Local storage limit of the container (in MB)
30-
[scaling-option.concurrent-requests-threshold]
31-
[scaling-option.cpu-usage-threshold]
32-
[scaling-option.memory-usage-threshold]
33-
[health-check.http.path] Path to use for the HTTP health check.
34-
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
35-
[health-check.interval] Period between health checks.
36-
[tags.{index}] Tags of the Serverless Container
9+
container-id UUID of the container to update.
10+
[environment-variables.{key}] Environment variables of the container.
11+
[secret-environment-variables.{key}] Secret environment variables of the container.
12+
[min-scale] Minimum number of instances to scale the container to.
13+
[max-scale] Maximum number of instances to scale the container to.
14+
[memory-limit-bytes] Memory limit of the container in bytes.
15+
[mvcpu-limit] CPU limit of the container in mvCPU.
16+
[timeout] Processing time limit for the container.
17+
[privacy] Privacy policy of the container. (unknown_privacy | public | private)
18+
[description] Container description.
19+
[image] Image reference (e.g. "rg.fr-par.scw.cloud/my-registry-namespace/image:tag").
20+
[protocol] Protocol the container uses. (unknown_protocol | http1 | h2c)
21+
[port] Port the container listens on.
22+
[https-connection-only] If true, it will allow only HTTPS connections to access your container to prevent it from being triggered by insecure connections (HTTP).
23+
[sandbox] Execution environment of the container. (unknown_sandbox | v1 | v2)
24+
[local-storage-limit-bytes] Local storage limit of the container (in bytes).
25+
[scaling-option.concurrent-requests-threshold] Scale depending on the number of concurrent requests being processed per container instance. The threshold value is the number of concurrent requests above which the container will be scaled up.
26+
[scaling-option.cpu-usage-threshold] Scale depending on the CPU usage of a container instance. The threshold value is the percentage of CPU usage above which the container will be scaled up.
27+
[scaling-option.memory-usage-threshold] Scale depending on the memory usage of a container instance. The threshold value is the percentage of memory usage above which the container will be scaled up.
28+
[liveness-probe.failure-threshold] Number of consecutive failures before considering the container as unhealthy
29+
[liveness-probe.interval] Time interval between checks.
30+
[liveness-probe.timeout] Duration before the check times out.
31+
[liveness-probe.http.path] HTTP path to perform the check on.
32+
[startup-probe.failure-threshold]
33+
[startup-probe.interval]
34+
[startup-probe.timeout]
35+
[startup-probe.http.path]
36+
[tags.{index}] Tags of the Serverless Container.
3737
[private-network-id] ID of the Private Network the container is connected to.
3838
[command.{index}] Container command
3939
[args.{index}] Container arguments
4040
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
4141

42-
DEPRECATED ARGS:
43-
[redeploy] Defines whether to redeploy failed containers
44-
[max-concurrency] Number of maximum concurrent executions of the container
45-
4642
FLAGS:
4743
-h, --help help for update
4844
--list-sub-commands List all subcommands
45+
-w, --wait wait until the container is ready
4946

5047
GLOBAL FLAGS:
5148
-c, --config string The path to the config file

β€Žcmd/scw/testdata/test-all-usage-container-container-usage.goldenβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ USAGE:
66
scw container container <command>
77

88
AVAILABLE COMMANDS:
9-
create Create a new container
10-
delete Delete a container
11-
deploy Deploy a container
12-
get Get a container
13-
list List all your containers
14-
update Update an existing container
9+
create Create a new container in a namespace.
10+
delete Delete the container associated with the specified ID.
11+
get Get the container associated with the specified ID.
12+
list List all containers the caller can access (read permission).
13+
redeploy Redeploy a container
14+
update Update the container associated with the specified ID.
1515

1616
FLAGS:
1717
-h, --help help for container

β€Žcmd/scw/testdata/test-all-usage-container-domain-create-usage.goldenβ€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
Create a custom domain for the container with the specified ID.
3+
Create a new custom domain for the container with the specified ID.
44

55
USAGE:
66
scw container domain create [arg=value ...]
77

88
ARGS:
9-
[hostname] Domain to assign
10-
[container-id] UUID of the container to assign the domain to
9+
container-id Unique ID of the container the domain will be assigned to.
10+
hostname Domain assigned to the container.
11+
[tags.{index}] A list of arbitrary tags associated with the domain.
1112
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1213

1314
FLAGS:

β€Žcmd/scw/testdata/test-all-usage-container-domain-delete-usage.goldenβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
Delete the custom domain with the specific ID.
3+
Delete the custom domain associated with the specified ID.
44

55
USAGE:
66
scw container domain delete <domain-id ...> [arg=value ...]
77

88
ARGS:
9-
domain-id UUID of the domain to delete
9+
domain-id UUID of the domain to delete.
1010
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1111

1212
FLAGS:

β€Žcmd/scw/testdata/test-all-usage-container-domain-get-usage.goldenβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
Get a custom domain for the container with the specified ID.
3+
Get the custom domain associated with the specified ID.
44

55
USAGE:
66
scw container domain get <domain-id ...> [arg=value ...]

β€Žcmd/scw/testdata/test-all-usage-container-domain-list-usage.goldenβ€Ž

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
List all custom domains in a specified region.
3+
By default, the custom domains listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
4+
5+
Additional parameters can be set in the query to filter the output, such as `organization_id`, `project_id`, `namespace_id`, or `container_id`.
46

57
USAGE:
68
scw container domain list [arg=value ...]
79

810
ARGS:
9-
[order-by] Order of the domains (created_at_asc | created_at_desc | hostname_asc | hostname_desc)
10-
[container-id] UUID of the container the domain belongs to
11-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
11+
[order-by] (created_at_asc | created_at_desc | hostname_asc | hostname_desc)
12+
[project-id]
13+
[namespace-id]
14+
[container-id]
15+
[organization-id]
16+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1217

1318
FLAGS:
1419
-h, --help help for list

0 commit comments

Comments
Β (0)