Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Create a new container in the specified region.

When creating a container, the `created` status is no longer used. The deployment process is started
and the status is set to `pending` accordingly.

USAGE:
scw container container create [arg=value ...]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Deploy a container associated with the specified ID.

Since updating a container now always deploys it (and passes its status to `pending`), this call becomes superfluous.

Moreover, calling `DeployContainer` immediately after `UpdateContainer` can cause `409 - resource is in a transient state` errors, so it is better to not use it when updating a container.

USAGE:
scw container container deploy <container-id ...> [arg=value ...]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
Update the container associated with the specified ID.

When updating a container, the container is automatically redeployed to apply the changes.
This behavior can be changed by setting the `redeploy` field to `false` in the request.

Warning: The `redeploy` field has been deprecated. An update now always redeploys the container.

USAGE:
scw container container update <container-id ...> [arg=value ...]
Expand Down
10 changes: 9 additions & 1 deletion docs/commands/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ Container management commands.

Create a new container in the specified region.

When creating a container, the `created` status is no longer used. The deployment process is started
and the status is set to `pending` accordingly.

**Usage:**

```
Expand Down Expand Up @@ -118,6 +121,10 @@ scw container container delete <container-id ...> [arg=value ...]

Deploy a container associated with the specified ID.

Since updating a container now always deploys it (and passes its status to `pending`), this call becomes superfluous.

Moreover, calling `DeployContainer` immediately after `UpdateContainer` can cause `409 - resource is in a transient state` errors, so it is better to not use it when updating a container.

**Usage:**

```
Expand Down Expand Up @@ -183,7 +190,8 @@ scw container container list [arg=value ...]
Update the container associated with the specified ID.

When updating a container, the container is automatically redeployed to apply the changes.
This behavior can be changed by setting the `redeploy` field to `false` in the request.

Warning: The `redeploy` field has been deprecated. An update now always redeploys the container.

**Usage:**

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ require (
github.com/moby/buildkit v0.29.0
github.com/moby/go-archive v0.2.0
github.com/opencontainers/go-digest v1.0.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260410075832-1d11daa52f3a
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260410085437-583409c79721
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260410075832-1d11daa52f3a h1:QgieCW5f7sJFVpjSo3yvEUIh+kF7wHyDrtkoONBttKA=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260410075832-1d11daa52f3a/go.mod h1:jG9ApeokegM68b/6vebk8fAhBJbqZKUoor/+f19+bH0=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260410085437-583409c79721 h1:cysx/Agxy/gRF3WLMPh/0hcSj8QBRDEyQI/nG3a2j8Y=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260410085437-583409c79721/go.mod h1:jG9ApeokegM68b/6vebk8fAhBJbqZKUoor/+f19+bH0=
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
github.com/secure-systems-lab/go-securesystemslib v0.10.0 h1:l+H5ErcW0PAehBNrBxoGv1jjNpGYdZ9RcheFkB2WI14=
Expand Down
18 changes: 13 additions & 5 deletions internal/namespaces/container/v1beta1/container_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,11 @@ func containerContainerGet() *core.Command {

func containerContainerCreate() *core.Command {
return &core.Command{
Short: `Create a new container`,
Long: `Create a new container in the specified region.`,
Short: `Create a new container`,
Long: `Create a new container in the specified region.

When creating a container, the ` + "`" + `created` + "`" + ` status is no longer used. The deployment process is started
and the status is set to ` + "`" + `pending` + "`" + ` accordingly.`,
Namespace: "container",
Resource: "container",
Verb: "create",
Expand Down Expand Up @@ -766,7 +769,8 @@ func containerContainerUpdate() *core.Command {
Long: `Update the container associated with the specified ID.

When updating a container, the container is automatically redeployed to apply the changes.
This behavior can be changed by setting the ` + "`" + `redeploy` + "`" + ` field to ` + "`" + `false` + "`" + ` in the request.`,

Warning: The ` + "`" + `redeploy` + "`" + ` field has been deprecated. An update now always redeploys the container.`,
Namespace: "container",
Resource: "container",
Verb: "update",
Expand Down Expand Up @@ -1044,8 +1048,12 @@ func containerContainerDelete() *core.Command {

func containerContainerDeploy() *core.Command {
return &core.Command{
Short: `Deploy a container`,
Long: `Deploy a container associated with the specified ID.`,
Short: `Deploy a container`,
Long: `Deploy a container associated with the specified ID.

Since updating a container now always deploys it (and passes its status to ` + "`" + `pending` + "`" + `), this call becomes superfluous.

Moreover, calling ` + "`" + `DeployContainer` + "`" + ` immediately after ` + "`" + `UpdateContainer` + "`" + ` can cause ` + "`" + `409 - resource is in a transient state` + "`" + ` errors, so it is better to not use it when updating a container.`,
Namespace: "container",
Resource: "container",
Verb: "deploy",
Expand Down
Loading