Skip to content

Commit 0ec5a01

Browse files
scaleway-botremyleone
authored andcommitted
feat(serverless): add support for tags (scaleway#4699)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 9343f2f commit 0ec5a01

13 files changed

+49
-13
lines changed

cmd/scw/testdata/test-all-usage-container-container-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ARGS:
3030
[health-check.http.path] Path to use for the HTTP health check.
3131
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3232
[health-check.interval] Period between health checks.
33+
[tags.{index}] Tags of the Serverless Container
3334
[deploy=true] Deploy container after creation
3435
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
3536

cmd/scw/testdata/test-all-usage-container-container-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ARGS:
3030
[health-check.http.path] Path to use for the HTTP health check.
3131
[health-check.failure-threshold] Number of consecutive health check failures before considering the container unhealthy.
3232
[health-check.interval] Period between health checks.
33+
[tags.{index}] Tags of the Serverless Container
3334
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
3435

3536
DEPRECATED ARGS:

cmd/scw/testdata/test-all-usage-container-namespace-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ARGS:
1212
[description] Description of the namespace to create
1313
[secret-environment-variables.{index}.key]
1414
[secret-environment-variables.{index}.value]
15-
[tags.{index}] [ALPHA] Tags of the Serverless Container Namespace
15+
[tags.{index}] Tags of the Serverless Container Namespace
1616
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1717

1818
FLAGS:

cmd/scw/testdata/test-all-usage-container-namespace-update-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[description] Description of the namespace to update
1212
[secret-environment-variables.{index}.key]
1313
[secret-environment-variables.{index}.value]
14-
[tags.{index}] [ALPHA] Tags of the Serverless Container Namespace
14+
[tags.{index}] Tags of the Serverless Container Namespace
1515
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1616

1717
FLAGS:

cmd/scw/testdata/test-all-usage-function-function-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARGS:
2121
[secret-environment-variables.{index}.value]
2222
[http-option=enabled] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
2323
[sandbox] Execution environment of the function (unknown_sandbox | v1 | v2)
24+
[tags.{index}] Tags of the Serverless Function
2425
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2526

2627
FLAGS:

cmd/scw/testdata/test-all-usage-function-function-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARGS:
2121
[secret-environment-variables.{index}.value]
2222
[http-option] Configure how HTTP and HTTPS requests are handled (unknown_http_option | enabled | redirected)
2323
[sandbox] Execution environment of the function (unknown_sandbox | v1 | v2)
24+
[tags.{index}] Tags of the Serverless Function
2425
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2526

2627
FLAGS:

cmd/scw/testdata/test-all-usage-function-namespace-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ARGS:
1212
[description] Description of the namespace
1313
[secret-environment-variables.{index}.key]
1414
[secret-environment-variables.{index}.value]
15-
[tags.{index}] [ALPHA] Tags of the Serverless Function Namespace
15+
[tags.{index}] Tags of the Serverless Function Namespace
1616
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1717

1818
FLAGS:

cmd/scw/testdata/test-all-usage-function-namespace-update-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARGS:
1111
[description] Description of the namespace
1212
[secret-environment-variables.{index}.key]
1313
[secret-environment-variables.{index}.value]
14-
[tags.{index}] [ALPHA] Tags of the Serverless Function Namespace
14+
[tags.{index}] Tags of the Serverless Function Namespace
1515
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1616

1717
FLAGS:

docs/commands/container.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ scw container container create [arg=value ...]
8585
| health-check.http.path | | Path to use for the HTTP health check. |
8686
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
8787
| health-check.interval | | Period between health checks. |
88+
| tags.{index} | | Tags of the Serverless Container |
8889
| deploy | Default: `true` | Deploy container after creation |
8990
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
9091

@@ -214,6 +215,7 @@ scw container container update <container-id ...> [arg=value ...]
214215
| health-check.http.path | | Path to use for the HTTP health check. |
215216
| health-check.failure-threshold | | Number of consecutive health check failures before considering the container unhealthy. |
216217
| health-check.interval | | Period between health checks. |
218+
| tags.{index} | | Tags of the Serverless Container |
217219
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
218220

219221

@@ -474,7 +476,7 @@ scw container namespace create [arg=value ...]
474476
| description | | Description of the namespace to create |
475477
| secret-environment-variables.{index}.key | | |
476478
| secret-environment-variables.{index}.value | | |
477-
| tags.{index} | | [ALPHA] Tags of the Serverless Container Namespace |
479+
| tags.{index} | | Tags of the Serverless Container Namespace |
478480
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
479481

480482

@@ -562,7 +564,7 @@ scw container namespace update <namespace-id ...> [arg=value ...]
562564
| description | | Description of the namespace to update |
563565
| secret-environment-variables.{index}.key | | |
564566
| secret-environment-variables.{index}.value | | |
565-
| tags.{index} | | [ALPHA] Tags of the Serverless Container Namespace |
567+
| tags.{index} | | Tags of the Serverless Container Namespace |
566568
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
567569

568570

docs/commands/function.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ scw function function create [arg=value ...]
304304
| secret-environment-variables.{index}.value | | |
305305
| http-option | Default: `enabled`<br />One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
306306
| sandbox | One of: `unknown_sandbox`, `v1`, `v2` | Execution environment of the function |
307+
| tags.{index} | | Tags of the Serverless Function |
307308
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
308309

309310

@@ -463,6 +464,7 @@ scw function function update <function-id ...> [arg=value ...]
463464
| secret-environment-variables.{index}.value | | |
464465
| http-option | One of: `unknown_http_option`, `enabled`, `redirected` | Configure how HTTP and HTTPS requests are handled |
465466
| sandbox | One of: `unknown_sandbox`, `v1`, `v2` | Execution environment of the function |
467+
| tags.{index} | | Tags of the Serverless Function |
466468
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
467469

468470

@@ -493,7 +495,7 @@ scw function namespace create [arg=value ...]
493495
| description | | Description of the namespace |
494496
| secret-environment-variables.{index}.key | | |
495497
| secret-environment-variables.{index}.value | | |
496-
| tags.{index} | | [ALPHA] Tags of the Serverless Function Namespace |
498+
| tags.{index} | | Tags of the Serverless Function Namespace |
497499
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
498500

499501

@@ -581,7 +583,7 @@ scw function namespace update <namespace-id ...> [arg=value ...]
581583
| description | | Description of the namespace |
582584
| secret-environment-variables.{index}.key | | |
583585
| secret-environment-variables.{index}.value | | |
584-
| tags.{index} | | [ALPHA] Tags of the Serverless Function Namespace |
586+
| tags.{index} | | Tags of the Serverless Function Namespace |
585587
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
586588

587589

0 commit comments

Comments
 (0)