Skip to content

Commit

Permalink
feat(function): add support for node{16,17}, python{37,38,39,310}, go…
Browse files Browse the repository at this point in the history
…{113, 117, 118} (#2257)

Co-authored-by: Rémy Léone <rleone@scaleway.com>
  • Loading branch information
scaleway-bot and remyleone committed Apr 12, 2022
1 parent 1e19ed0 commit 06533d0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARGS:
[environment-variables.value.{key}]
[min-scale]
[max-scale]
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14)
[runtime] (unknown_runtime | golang | python | python3 | node8 | node10 | node14 | node16 | node17 | python37 | python38 | python39 | python310 | go113 | go117 | go118)
[memory-limit]
[timeout.seconds]
[timeout.nanos]
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/function.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ scw function function create [arg=value ...]
| environment-variables.value.{key} | | |
| min-scale | | |
| max-scale | | |
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14` | |
| runtime | One of: `unknown_runtime`, `golang`, `python`, `python3`, `node8`, `node10`, `node14`, `node16`, `node17`, `python37`, `python38`, `python39`, `python310`, `go113`, `go117`, `go118` | |
| memory-limit | | |
| timeout.seconds | | |
| timeout.nanos | | |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/kubernetes-client/go-base v0.0.0-20190205182333-3d0e39759d98
github.com/mattn/go-colorable v0.1.12
github.com/mattn/go-isatty v0.0.14
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220331162939-ba30fab1df65
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220412084709-d53c9b6a9869
github.com/spf13/cobra v1.4.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220331162939-ba30fab1df65 h1:ufOy3H0qLn6HVaqu4udEBGiKbHBi997fG1pu+4JVrOo=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220331162939-ba30fab1df65/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220412084709-d53c9b6a9869 h1:6dr1njWPdA/51l1/YVrgu921SuRSRPr1WzeKDQUktH0=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220412084709-d53c9b6a9869/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=
Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/function/v1beta1/function_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func functionFunctionCreate() *core.Command {
Required: false,
Deprecated: false,
Positional: false,
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14"},
EnumValues: []string{"unknown_runtime", "golang", "python", "python3", "node8", "node10", "node14", "node16", "node17", "python37", "python38", "python39", "python310", "go113", "go117", "go118"},
},
{
Name: "memory-limit",
Expand Down

0 comments on commit 06533d0

Please sign in to comment.