Skip to content

Commit

Permalink
feat(serverless): add PHP 8.2 runtime (#2684)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Léone <rleone@scaleway.com>
  • Loading branch information
scaleway-bot and remyleone committed Dec 27, 2022
1 parent b272743 commit 15fa7a9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARGS:
[environment-variables.{key}]
[min-scale]
[max-scale]
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311)
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82)
[memory-limit]
[timeout.seconds]
[timeout.nanos]
Expand All @@ -20,11 +20,9 @@ ARGS:
[description]
[secret-environment-variables.{index}.key]
[secret-environment-variables.{index}.value]
[http-option] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

DEPRECATED ARGS:
[http-option] Configure how HTTP and HTTPS requests are handled

FLAGS:
-h, --help help for create

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARGS:
[environment-variables.{key}]
[min-scale]
[max-scale]
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311)
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82)
[memory-limit]
[timeout.seconds]
[timeout.nanos]
Expand All @@ -20,11 +20,9 @@ ARGS:
[description]
[secret-environment-variables.{index}.key]
[secret-environment-variables.{index}.value]
[http-option] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)

DEPRECATED ARGS:
[http-option] Configure how HTTP and HTTPS requests are handled

FLAGS:
-h, --help help for update

Expand Down
8 changes: 4 additions & 4 deletions docs/commands/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ scw function function create [arg=value ...]
| environment-variables.{key} | | |
| min-scale | | |
| max-scale | | |
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311` | |
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311`, `php82` | |
| memory-limit | | |
| timeout.seconds | | |
| timeout.nanos | | |
Expand All @@ -224,7 +224,7 @@ scw function function create [arg=value ...]
| description | | |
| secret-environment-variables.{index}.key | | |
| secret-environment-variables.{index}.value | | |
| ~~http-option~~ | Deprecated | Configure how HTTP and HTTPS requests are handled |
| http-option | One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |


Expand Down Expand Up @@ -373,7 +373,7 @@ scw function function update <function-id ...> [arg=value ...]
| environment-variables.{key} | | |
| min-scale | | |
| max-scale | | |
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311` | |
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311`, `php82` | |
| memory-limit | | |
| timeout.seconds | | |
| timeout.nanos | | |
Expand All @@ -383,7 +383,7 @@ scw function function update <function-id ...> [arg=value ...]
| description | | |
| secret-environment-variables.{index}.key | | |
| secret-environment-variables.{index}.value | | |
| ~~http-option~~ | Deprecated | Configure how HTTP and HTTPS requests are handled |
| http-option | One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |


Expand Down
10 changes: 6 additions & 4 deletions internal/namespaces/function/v1beta1/function_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ func functionFunctionCreate() *core.Command {
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311"},
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311", "php82"},
},
{
Name: "memory-limit",
Expand Down Expand Up @@ -567,8 +567,9 @@ func functionFunctionCreate() *core.Command {
Name: "http-option",
Short: `Configure how HTTP and HTTPS requests are handled`,
Required: false,
Deprecated: true,
Deprecated: false,
Positional: false,
EnumValues: []string{"unknown_http_option", "enabled", "redirected"},
},
core.RegionArgSpec(scw.RegionFrPar),
},
Expand Down Expand Up @@ -622,7 +623,7 @@ func functionFunctionUpdate() *core.Command {
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311"},
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311", "php82"},
},
{
Name: "memory-limit",
Expand Down Expand Up @@ -683,8 +684,9 @@ func functionFunctionUpdate() *core.Command {
Name: "http-option",
Short: `Configure how HTTP and HTTPS requests are handled`,
Required: false,
Deprecated: true,
Deprecated: false,
Positional: false,
EnumValues: []string{"unknown_http_option", "enabled", "redirected"},
},
core.RegionArgSpec(scw.RegionFrPar),
},
Expand Down

0 comments on commit 15fa7a9

Please sign in to comment.