Skip to content

Commit c68c037

Browse files
chore(container): deprecate redeploy (#5291)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent 42f0f5c commit c68c037

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ ARGS:
1616
[memory-limit] Memory limit of the container in MB
1717
[cpu-limit] CPU limit of the container in mvCPU
1818
[timeout] Processing time limit for the container
19-
[redeploy] Defines whether to redeploy failed containers
2019
[privacy] Privacy settings of the container (unknown_privacy | public | private)
2120
[description] Description of the container
2221
[registry-image] Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag").
@@ -40,6 +39,7 @@ ARGS:
4039
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
4140

4241
DEPRECATED ARGS:
42+
[redeploy] Defines whether to redeploy failed containers
4343
[max-concurrency] Number of maximum concurrent executions of the container
4444

4545
FLAGS:

docs/commands/container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ scw container container update <container-id ...> [arg=value ...]
203203
| memory-limit | | Memory limit of the container in MB |
204204
| cpu-limit | | CPU limit of the container in mvCPU |
205205
| timeout | | Processing time limit for the container |
206-
| redeploy | | Defines whether to redeploy failed containers |
206+
| ~~redeploy~~ | Deprecated | Defines whether to redeploy failed containers |
207207
| privacy | One of: `unknown_privacy`, `public`, `private` | Privacy settings of the container |
208208
| description | | Description of the container |
209209
| registry-image | | Name of the registry image (e.g. "rg.fr-par.scw.cloud/something/image:tag"). |

internal/namespaces/container/v1beta1/container_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ This behavior can be changed by setting the ` + "`" + `redeploy` + "`" + ` field
826826
Name: "redeploy",
827827
Short: `Defines whether to redeploy failed containers`,
828828
Required: false,
829-
Deprecated: false,
829+
Deprecated: true,
830830
Positional: false,
831831
},
832832
{

0 commit comments

Comments
 (0)