Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deploy/lib/createContainers.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ module.exports = {
container.secret,
),
namespace_id: this.namespace.id,
description: container.description,
memory_limit: container.memoryLimit,
min_scale: container.minScale,
max_scale: container.maxScale,
Expand Down Expand Up @@ -111,6 +112,7 @@ module.exports = {
secrets.convertObjectToModelSecretsArray(container.secret),
this.serverless.cli,
),
description: container.description,
memory_limit: container.memoryLimit,
min_scale: container.minScale,
max_scale: container.maxScale,
Expand Down
2 changes: 2 additions & 0 deletions deploy/lib/createFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ Runtime lifecycle doc : https://www.scaleway.com/en/docs/compute/functions/refer
func.secret
),
namespace_id: this.namespace.id,
description: func.description,
memory_limit: func.memoryLimit,
min_scale: func.minScale,
max_scale: func.maxScale,
Expand Down Expand Up @@ -196,6 +197,7 @@ Runtime lifecycle doc : https://www.scaleway.com/en/docs/compute/functions/refer
secrets.convertObjectToModelSecretsArray(func.secret),
this.serverless.cli
),
description: func.description,
memory_limit: func.memoryLimit,
min_scale: func.minScale,
max_scale: func.maxScale,
Expand Down
1 change: 1 addition & 0 deletions examples/container-schedule/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ custom:
input:
myInput: myValue
mySecondInput: 1
# description: ""
# minScale: 1
# memoryLimit: 256
# maxScale: 2
Expand Down
1 change: 1 addition & 0 deletions examples/container/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ custom:
containers:
first:
directory: my-container
# description: ""
# minScale: 1
# memoryLimit: 256
# maxScale: 2
Expand Down
1 change: 1 addition & 0 deletions examples/go/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ functions:
first:
# handler is just the name of the exported handler function
handler: Handle
# description: ""
# Local environment variables - used only in given function
env:
local: local
Expand Down
1 change: 1 addition & 0 deletions examples/go113/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package:
functions:
first:
# If handler is at the root of your serverless project
# description: ""
handler: "."
# Local environment variables - used only in given function
env:
Expand Down
2 changes: 2 additions & 0 deletions examples/multiple/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ package:
functions:
nodefunc:
handler: handler.handle
# description: ""
# Local environment variables - used only in given function
env:
local: local
pythonfunc:
runtime: python3 # Here we add a specific runtime for the function
handler: handler.handle
# description: ""
# Local environment variables - used only in given function
env:
local: local
1 change: 1 addition & 0 deletions examples/nodejs-es-modules/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package:
functions:
first:
handler: handler.handle
# description: ""
# Local environment variables - used only in given function
env:
local: local
1 change: 1 addition & 0 deletions examples/nodejs-schedule/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package:
functions:
first:
handler: handler.handle
# description: ""
events:
- schedule:
rate: '1 * * * *'
Expand Down
1 change: 1 addition & 0 deletions examples/nodejs/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package:
functions:
first:
handler: handler.handle
# description: ""
# Local environment variables - used only in given function
env:
local: local
1 change: 1 addition & 0 deletions examples/python3/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package:
functions:
first:
handler: handler.handle
# description: ""
# Local environment variables - used only in given function
env:
local: local
1 change: 1 addition & 0 deletions examples/secrets/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ package:
functions:
first:
handler: handler.handle
# description: ""
# Local environment variables - used only in given function
env:
env_notSecret1: notSecret1
Expand Down
Loading