Skip to content

Commit 4805491

Browse files
docs(serverless): clarify UpdateContainer and UpdateFunction behavior (scaleway#2347)
Co-authored-by: Jonathan R. <[email protected]>
1 parent 6d3a37d commit 4805491

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

packages_generated/container/src/v1beta1/types.gen.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,18 @@ export type UpdateContainerRequest = {
12821282
*/
12831283
port?: number
12841284
/**
1285-
* Secret environment variables of the container.
1285+
* During an update, secret environment variables that are not specified in this field will be kept unchanged.
1286+
1287+
In order to delete a specific secret environment variable, you must reference its key, but not provide any value for it.
1288+
For example, the following payload will delete the `TO_DELETE` secret environment variable:
1289+
1290+
```json
1291+
{
1292+
"secret_environment_variables":[
1293+
{"key":"TO_DELETE"}
1294+
]
1295+
}
1296+
```.
12861297
*/
12871298
secretEnvironmentVariables?: Secret[]
12881299
/**

packages_generated/function/src/v1beta1/types.gen.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,18 @@ export type UpdateFunctionRequest = {
12811281
*/
12821282
description?: string
12831283
/**
1284-
* Secret environment variables of the function.
1284+
* During an update, secret environment variables that are not specified in this field will be kept unchanged.
1285+
1286+
In order to delete a specific secret environment variable, you must reference its key, but not provide any value for it.
1287+
For example, the following payload will delete the `TO_DELETE` secret environment variable:
1288+
1289+
```json
1290+
{
1291+
"secret_environment_variables":[
1292+
{"key":"TO_DELETE"}
1293+
]
1294+
}
1295+
```.
12851296
*/
12861297
secretEnvironmentVariables?: Secret[]
12871298
/**

0 commit comments

Comments
 (0)