|
1 | 1 | --- |
2 | | -title: How to migrate from startup command to command and arguments |
3 | | -description: Learn how to migrate from the legacy startup command system to the modern commands and arguments for Scaleway Serverless Jobs. |
| 2 | +title: How to migrate from command to startup command and arguments |
| 3 | +description: Learn how to migrate from the legacy command system to the modern startup command and arguments for Scaleway Serverless Jobs. |
4 | 4 | tags: containers |
5 | 5 | dates: |
6 | 6 | validation: 2025-12-23 |
|
9 | 9 |
|
10 | 10 | import Requirements from '@macros/iam/requirements.mdx' |
11 | 11 |
|
12 | | -The Serverless Jobs `v1alpha2` API introduces a new startup execution mechanism based on [commands and arguments](/serverless-containers/concepts/#startup-command-and-arguments), replacing the legacy `command`. |
| 12 | +The Serverless Jobs `v1alpha2` API introduces a new startup execution mechanism based on [commands and arguments](/serverless-jobs/concepts/#startup-commands-and-arguments), replacing the legacy `command`. |
13 | 13 |
|
14 | 14 | The Scaleway console allows you to quickly and easily migrate your existing jobs to the new system. |
15 | 15 |
|
16 | 16 | Migration from `command` field to `startup_command` field is mostly transparent for customers using Scaleway Console but can require some attention of API, CLI and other devtools users. |
17 | 17 |
|
18 | 18 | The change allows for: |
19 | | -- More customisation for executing complex command, by separating `startup_command` and `args`. |
20 | | -- To match our underlying [Kubernetes implementation](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/). |
21 | | -- It allows to compute environment variables used in command and argument strings. |
| 19 | +- More customization for executing complex commands, by separating `startup_command` and `args`. |
| 20 | +- Better alignment with our underlying [Kubernetes implementation](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/). |
| 21 | +- The ability to compute environment variables used in command and argument strings. |
22 | 22 | - `startup_command` is now an array of commands instead of a single string. |
23 | 23 |
|
24 | 24 | <Requirements /> |
25 | 25 |
|
26 | 26 | - A Scaleway account logged into the [console](https://console.scaleway.com) |
27 | 27 | - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization |
28 | | -- An existing job that uses a startup command |
| 28 | +- An existing job that uses the legacy command field |
29 | 29 |
|
30 | 30 | ## How to migrate from command to startup commands and arguments |
31 | 31 |
|
|
0 commit comments