Skip to content

Commit 38f45bc

Browse files
Support description field (#116)
1 parent 8008336 commit 38f45bc

File tree

16 files changed

+689
-656
lines changed

16 files changed

+689
-656
lines changed

deploy/lib/createContainers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ module.exports = {
8181
container.secret,
8282
),
8383
namespace_id: this.namespace.id,
84+
description: container.description,
8485
memory_limit: container.memoryLimit,
8586
min_scale: container.minScale,
8687
max_scale: container.maxScale,
@@ -111,6 +112,7 @@ module.exports = {
111112
secrets.convertObjectToModelSecretsArray(container.secret),
112113
this.serverless.cli,
113114
),
115+
description: container.description,
114116
memory_limit: container.memoryLimit,
115117
min_scale: container.minScale,
116118
max_scale: container.maxScale,

deploy/lib/createFunctions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Runtime lifecycle doc : https://www.scaleway.com/en/docs/compute/functions/refer
158158
func.secret
159159
),
160160
namespace_id: this.namespace.id,
161+
description: func.description,
161162
memory_limit: func.memoryLimit,
162163
min_scale: func.minScale,
163164
max_scale: func.maxScale,
@@ -196,6 +197,7 @@ Runtime lifecycle doc : https://www.scaleway.com/en/docs/compute/functions/refer
196197
secrets.convertObjectToModelSecretsArray(func.secret),
197198
this.serverless.cli
198199
),
200+
description: func.description,
199201
memory_limit: func.memoryLimit,
200202
min_scale: func.minScale,
201203
max_scale: func.maxScale,

examples/container-schedule/serverless.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ custom:
2525
input:
2626
myInput: myValue
2727
mySecondInput: 1
28+
# description: ""
2829
# minScale: 1
2930
# memoryLimit: 256
3031
# maxScale: 2

examples/container/serverless.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ custom:
1919
containers:
2020
first:
2121
directory: my-container
22+
# description: ""
2223
# minScale: 1
2324
# memoryLimit: 256
2425
# maxScale: 2

examples/go/serverless.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ functions:
2020
first:
2121
# handler is just the name of the exported handler function
2222
handler: Handle
23+
# description: ""
2324
# Local environment variables - used only in given function
2425
env:
2526
local: local

examples/go113/serverless.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package:
1919
functions:
2020
first:
2121
# If handler is at the root of your serverless project
22+
# description: ""
2223
handler: "."
2324
# Local environment variables - used only in given function
2425
env:

examples/multiple/serverless.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ package:
1818
functions:
1919
nodefunc:
2020
handler: handler.handle
21+
# description: ""
2122
# Local environment variables - used only in given function
2223
env:
2324
local: local
2425
pythonfunc:
2526
runtime: python3 # Here we add a specific runtime for the function
2627
handler: handler.handle
28+
# description: ""
2729
# Local environment variables - used only in given function
2830
env:
2931
local: local

examples/nodejs-es-modules/serverless.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package:
1818
functions:
1919
first:
2020
handler: handler.handle
21+
# description: ""
2122
# Local environment variables - used only in given function
2223
env:
2324
local: local

examples/nodejs-schedule/serverless.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package:
1818
functions:
1919
first:
2020
handler: handler.handle
21+
# description: ""
2122
events:
2223
- schedule:
2324
rate: '1 * * * *'

examples/nodejs/serverless.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package:
1919
functions:
2020
first:
2121
handler: handler.handle
22+
# description: ""
2223
# Local environment variables - used only in given function
2324
env:
2425
local: local

0 commit comments

Comments
 (0)