Skip to content

Commit 5c022ea

Browse files
feat(serverless): add command and args to containers (scaleway#2573)
Co-authored-by: Jonathan R. <[email protected]>
1 parent b1c5ee6 commit 5c022ea

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

api/container/v1beta1/container_sdk.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,12 @@ type Container struct {
997997
Tags []string `json:"tags"`
998998

999999
PrivateNetworkID *string `json:"private_network_id"`
1000+
1001+
// Command: command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
1002+
Command []string `json:"command"`
1003+
1004+
// Args: arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
1005+
Args []string `json:"args"`
10001006
}
10011007

10021008
// Cron: cron.
@@ -1248,6 +1254,12 @@ type CreateContainerRequest struct {
12481254
Tags []string `json:"tags"`
12491255

12501256
PrivateNetworkID *string `json:"private_network_id,omitempty"`
1257+
1258+
// Command: command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
1259+
Command []string `json:"command"`
1260+
1261+
// Args: arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
1262+
Args []string `json:"args"`
12511263
}
12521264

12531265
// CreateCronRequest: create cron request.
@@ -1852,6 +1864,12 @@ type UpdateContainerRequest struct {
18521864
Tags *[]string `json:"tags,omitempty"`
18531865

18541866
PrivateNetworkID *string `json:"private_network_id,omitempty"`
1867+
1868+
// Command: command executed when the container starts. This overrides the default command defined in the container image. This is usually the main executable, or entry point script to run.
1869+
Command *[]string `json:"command,omitempty"`
1870+
1871+
// Args: arguments passed to the command specified in the "command" field. These override the default arguments from the container image, and behave like command-line parameters.
1872+
Args *[]string `json:"args,omitempty"`
18551873
}
18561874

18571875
// UpdateCronRequest: update cron request.

0 commit comments

Comments
 (0)