Skip to content

Commit e5cef4c

Browse files
feat(function): add support for node18 (#2335)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 762e658 commit e5cef4c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[environment-variables.value.{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)
14+
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18)
1515
[memory-limit]
1616
[timeout.seconds]
1717
[timeout.nanos]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARGS:
1010
[environment-variables.value.{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)
13+
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118 | node18)
1414
[memory-limit]
1515
[timeout.seconds]
1616
[timeout.nanos]

docs/commands/function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ scw function function create [arg=value ...]
118118
| environment-variables.value.{key} | | |
119119
| min-scale | | |
120120
| max-scale | | |
121-
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118` | |
121+
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18` | |
122122
| memory-limit | | |
123123
| timeout.seconds | | |
124124
| timeout.nanos | | |
@@ -276,7 +276,7 @@ scw function function update <function-id ...> [arg=value ...]
276276
| environment-variables.value.{key} | | |
277277
| min-scale | | |
278278
| max-scale | | |
279-
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118` | |
279+
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118`, `node18` | |
280280
| memory-limit | | |
281281
| timeout.seconds | | |
282282
| timeout.nanos | | |

internal/namespaces/function/v1beta1/function_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ func functionFunctionCreate() *core.Command {
484484
Required: false,
485485
Deprecated: false,
486486
Positional: false,
487-
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118"},
487+
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18"},
488488
},
489489
{
490490
Name: "memory-limit",
@@ -594,7 +594,7 @@ func functionFunctionUpdate() *core.Command {
594594
Required: false,
595595
Deprecated: false,
596596
Positional: false,
597-
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118"},
597+
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118", "node18"},
598598
},
599599
{
600600
Name: "memory-limit",

0 commit comments

Comments
 (0)