Skip to content

Commit 06533d0

Browse files
feat(function): add support for node{16,17}, python{37,38,39,310}, go{113, 117, 118} (#2257)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent 1e19ed0 commit 06533d0

File tree

5 files changed

+6
-6
lines changed

5 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)
14+
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118)
1515
[memory-limit]
1616
[timeout.seconds]
1717
[timeout.nanos]

docs/commands/function.md

Lines changed: 1 addition & 1 deletion
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` | |
121+
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118` | |
122122
| memory-limit | | |
123123
| timeout.seconds | | |
124124
| timeout.nanos | | |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/kubernetes-client/go-base v0.0.0-20190205182333-3d0e39759d98
1818
github.com/mattn/go-colorable v0.1.12
1919
github.com/mattn/go-isatty v0.0.14
20-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220331162939-ba30fab1df65
20+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220412084709-d53c9b6a9869
2121
github.com/spf13/cobra v1.4.0
2222
github.com/spf13/pflag v1.0.5
2323
github.com/stretchr/testify v1.7.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
5757
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
5858
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5959
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
60-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220331162939-ba30fab1df65 h1:ufOy3H0qLn6HVaqu4udEBGiKbHBi997fG1pu+4JVrOo=
61-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220331162939-ba30fab1df65/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
60+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220412084709-d53c9b6a9869 h1:6dr1njWPdA/51l1/YVrgu921SuRSRPr1WzeKDQUktH0=
61+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220412084709-d53c9b6a9869/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
6262
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
6363
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
6464
github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=

internal/namespaces/function/v1beta1/function_cli.go

Lines changed: 1 addition & 1 deletion
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"},
487+
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118"},
488488
},
489489
{
490490
Name: "memory-limit",

0 commit comments

Comments
 (0)