Skip to content

Commit 15fa7a9

Browse files
feat(serverless): add PHP 8.2 runtime (#2684)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent b272743 commit 15fa7a9

4 files changed

Lines changed: 14 additions & 16 deletions

File tree

cmd/scw/testdata/test-all-usage-function-function-create-usage.golden

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[environment-variables.{key}]
1212
[min-scale]
1313
[max-scale]
14-
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311)
14+
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82)
1515
[memory-limit]
1616
[timeout.seconds]
1717
[timeout.nanos]
@@ -20,11 +20,9 @@ ARGS:
2020
[description]
2121
[secret-environment-variables.{index}.key]
2222
[secret-environment-variables.{index}.value]
23+
[http-option] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
2324
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
2425

25-
DEPRECATED ARGS:
26-
[http-option] Configure how HTTP and HTTPS requests are handled
27-
2826
FLAGS:
2927
-h, --help help for create
3028

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
[environment-variables.{key}]
1111
[min-scale]
1212
[max-scale]
13-
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311)
13+
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18 | rust165 | go119 | python311 | php82)
1414
[memory-limit]
1515
[timeout.seconds]
1616
[timeout.nanos]
@@ -20,11 +20,9 @@ ARGS:
2020
[description]
2121
[secret-environment-variables.{index}.key]
2222
[secret-environment-variables.{index}.value]
23+
[http-option] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
2324
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
2425

25-
DEPRECATED ARGS:
26-
[http-option] Configure how HTTP and HTTPS requests are handled
27-
2826
FLAGS:
2927
-h, --help help for update
3028

docs/commands/function.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ scw function function create [arg=value ...]
215215
| environment-variables.{key} | | |
216216
| min-scale | | |
217217
| max-scale | | |
218-
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18`, `rust165`, `go119`, `python311` | |
218+
| 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` | |
219219
| memory-limit | | |
220220
| timeout.seconds | | |
221221
| timeout.nanos | | |
@@ -224,7 +224,7 @@ scw function function create [arg=value ...]
224224
| description | | |
225225
| secret-environment-variables.{index}.key | | |
226226
| secret-environment-variables.{index}.value | | |
227-
| ~~http-option~~ | Deprecated | Configure how HTTP and HTTPS requests are handled |
227+
| http-option | One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
228228
| region | Default: `fr-par`<br />One of: `fr-par` | Region to target. If none is passed will use default region from the config |
229229

230230

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

389389

internal/namespaces/function/v1beta1/function_cli.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ func functionFunctionCreate() *core.Command {
512512
Required: false,
513513
Deprecated: false,
514514
Positional: false,
515-
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311"},
515+
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311", "php82"},
516516
},
517517
{
518518
Name: "memory-limit",
@@ -567,8 +567,9 @@ func functionFunctionCreate() *core.Command {
567567
Name: "http-option",
568568
Short: `Configure how HTTP and HTTPS requests are handled`,
569569
Required: false,
570-
Deprecated: true,
570+
Deprecated: false,
571571
Positional: false,
572+
EnumValues: []string{"unknown_http_option", "enabled", "redirected"},
572573
},
573574
core.RegionArgSpec(scw.RegionFrPar),
574575
},
@@ -622,7 +623,7 @@ func functionFunctionUpdate() *core.Command {
622623
Required: false,
623624
Deprecated: false,
624625
Positional: false,
625-
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311"},
626+
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18", "rust165", "go119", "python311", "php82"},
626627
},
627628
{
628629
Name: "memory-limit",
@@ -683,8 +684,9 @@ func functionFunctionUpdate() *core.Command {
683684
Name: "http-option",
684685
Short: `Configure how HTTP and HTTPS requests are handled`,
685686
Required: false,
686-
Deprecated: true,
687+
Deprecated: false,
687688
Positional: false,
689+
EnumValues: []string{"unknown_http_option", "enabled", "redirected"},
688690
},
689691
core.RegionArgSpec(scw.RegionFrPar),
690692
},

0 commit comments

Comments
 (0)