Skip to content

Commit 3c03b52

Browse files
committed
feat: update generated APIs
1 parent 6fd860d commit 3c03b52

10 files changed

+35
-31
lines changed

cmd/scw/testdata/test-all-usage-edge-services-backend-stage-create-usage.golden

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ USAGE:
66
scw edge-services backend-stage create [arg=value ...]
77

88
ARGS:
9-
[scaleway-s3.bucket-name] Name of the Bucket
10-
[scaleway-s3.bucket-region] Region of the Bucket
11-
[scaleway-s3.is-website] Defines whether the bucket website feature is enabled
12-
[scaleway-lb.lbs.{index}.id] ID of the Load Balancer
13-
[scaleway-lb.lbs.{index}.zone] Zone of the Load Balancer
14-
[scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer
15-
[scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections
16-
[scaleway-lb.lbs.{index}.domain-name] Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer
17-
pipeline-id Pipeline ID the Backend stage belongs to
9+
[scaleway-s3.bucket-name] Name of the Bucket
10+
[scaleway-s3.bucket-region] Region of the Bucket
11+
[scaleway-s3.is-website] Defines whether the bucket website feature is enabled
12+
[scaleway-lb.lbs.{index}.id] ID of the Load Balancer
13+
[scaleway-lb.lbs.{index}.zone] Zone of the Load Balancer
14+
[scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer
15+
[scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections
16+
[scaleway-lb.lbs.{index}.domain-name] Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer
17+
[scaleway-lb.lbs.{index}.has-websocket] Defines whether to forward websocket requests to the load balancer
18+
pipeline-id Pipeline ID the Backend stage belongs to
1819

1920
FLAGS:
2021
-h, --help help for create

cmd/scw/testdata/test-all-usage-edge-services-backend-stage-update-usage.golden

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ USAGE:
66
scw edge-services backend-stage update <backend-stage-id ...> [arg=value ...]
77

88
ARGS:
9-
backend-stage-id ID of the backend stage to update
10-
[scaleway-s3.bucket-name] Name of the Bucket
11-
[scaleway-s3.bucket-region] Region of the Bucket
12-
[scaleway-s3.is-website] Defines whether the bucket website feature is enabled
13-
[scaleway-lb.lbs.{index}.id] ID of the Load Balancer
14-
[scaleway-lb.lbs.{index}.zone] Zone of the Load Balancer
15-
[scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer
16-
[scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections
17-
[scaleway-lb.lbs.{index}.domain-name] Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer
18-
[pipeline-id] Pipeline ID the Backend stage belongs to
9+
backend-stage-id ID of the backend stage to update
10+
[scaleway-s3.bucket-name] Name of the Bucket
11+
[scaleway-s3.bucket-region] Region of the Bucket
12+
[scaleway-s3.is-website] Defines whether the bucket website feature is enabled
13+
[scaleway-lb.lbs.{index}.id] ID of the Load Balancer
14+
[scaleway-lb.lbs.{index}.zone] Zone of the Load Balancer
15+
[scaleway-lb.lbs.{index}.frontend-id] ID of the frontend linked to the Load Balancer
16+
[scaleway-lb.lbs.{index}.is-ssl] Defines whether the Load Balancer's frontend handles SSL connections
17+
[scaleway-lb.lbs.{index}.domain-name] Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer
18+
[scaleway-lb.lbs.{index}.has-websocket] Defines whether to forward websocket requests to the load balancer
19+
[pipeline-id] Pipeline ID the Backend stage belongs to
1920

2021
FLAGS:
2122
-h, --help help for update

cmd/scw/testdata/test-all-usage-k8s-cluster-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ARGS:
2929
[pools.{index}.max-size] Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool
3030
[pools.{index}.container-runtime] Customization of the container runtime is available for each pool (unknown_runtime | docker | containerd | crio)
3131
[pools.{index}.autohealing] Defines whether the autohealing feature is enabled for the pool
32-
[pools.{index}.tags.{index}] Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags)
32+
[pools.{index}.tags.{index}] Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags)
3333
[pools.{index}.kubelet-args.{key}] Kubelet arguments to be used by this pool. Note that this feature is experimental
3434
[pools.{index}.upgrade-policy.max-unavailable] The maximum number of nodes that can be not ready at the same time
3535
[pools.{index}.upgrade-policy.max-surge] The maximum number of nodes to be created during the upgrade

cmd/scw/testdata/test-all-usage-k8s-pool-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ARGS:
2626
[max-size] Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool
2727
[container-runtime] Customization of the container runtime is available for each pool (unknown_runtime | docker | containerd | crio)
2828
[autohealing] Defines whether the autohealing feature is enabled for the pool
29-
[tags.{index}] Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags)
29+
[tags.{index}] Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags)
3030
[kubelet-args.{key}] Kubelet arguments to be used by this pool. Note that this feature is experimental
3131
[upgrade-policy.max-unavailable]
3232
[upgrade-policy.max-surge]

cmd/scw/testdata/test-all-usage-k8s-version-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
33
A version is a vanilla Kubernetes version like `x.y.z`
4-
It comprises a major version `x`, a minor version `y`, and a patch version `z`. At the minimum, Kapsule (Scaleway's managed Kubernetes), will support the last patch version for the past three minor releases. Also, each version has a different set of CNIs, eventually container runtimes, feature gates, and admission plugins available. See our [Version Support Policy](https://www.scaleway.com/en/docs/containers/kubernetes/reference-content/version-support-policy/).
4+
It comprises a major version `x`, a minor version `y`, and a patch version `z`. At the minimum, Kapsule (Scaleway's managed Kubernetes), will support the last patch version for the past three minor releases. Also, each version has a different set of CNIs, eventually container runtimes, feature gates, and admission plugins available. See our [Version Support Policy](https://www.scaleway.com/en/docs/kubernetes/reference-content/version-support-policy/).
55

66
USAGE:
77
scw k8s version <command>

docs/commands/edge-services.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ scw edge-services backend-stage create [arg=value ...]
8282
| scaleway-lb.lbs.{index}.frontend-id | | ID of the frontend linked to the Load Balancer |
8383
| scaleway-lb.lbs.{index}.is-ssl | | Defines whether the Load Balancer's frontend handles SSL connections |
8484
| scaleway-lb.lbs.{index}.domain-name | | Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer |
85+
| scaleway-lb.lbs.{index}.has-websocket | | Defines whether to forward websocket requests to the load balancer |
8586
| pipeline-id | Required | Pipeline ID the Backend stage belongs to |
8687

8788

@@ -171,6 +172,7 @@ scw edge-services backend-stage update <backend-stage-id ...> [arg=value ...]
171172
| scaleway-lb.lbs.{index}.frontend-id | | ID of the frontend linked to the Load Balancer |
172173
| scaleway-lb.lbs.{index}.is-ssl | | Defines whether the Load Balancer's frontend handles SSL connections |
173174
| scaleway-lb.lbs.{index}.domain-name | | Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer |
175+
| scaleway-lb.lbs.{index}.has-websocket | | Defines whether to forward websocket requests to the load balancer |
174176
| pipeline-id | | Pipeline ID the Backend stage belongs to |
175177

176178

docs/commands/k8s.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ scw k8s cluster create [arg=value ...]
175175
| pools.{index}.max-size | | Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool |
176176
| pools.{index}.container-runtime | One of: `unknown_runtime`, `docker`, `containerd`, `crio` | Customization of the container runtime is available for each pool |
177177
| pools.{index}.autohealing | | Defines whether the autohealing feature is enabled for the pool |
178-
| pools.{index}.tags.{index} | | Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags) |
178+
| pools.{index}.tags.{index} | | Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags) |
179179
| pools.{index}.kubelet-args.{key} | | Kubelet arguments to be used by this pool. Note that this feature is experimental |
180180
| pools.{index}.upgrade-policy.max-unavailable | | The maximum number of nodes that can be not ready at the same time |
181181
| pools.{index}.upgrade-policy.max-surge | | The maximum number of nodes to be created during the upgrade |
@@ -1006,7 +1006,7 @@ scw k8s pool create [arg=value ...]
10061006
| max-size | | Defines the maximum size of the pool. Note that this field is only used when autoscaling is enabled on the pool |
10071007
| container-runtime | One of: `unknown_runtime`, `docker`, `containerd`, `crio` | Customization of the container runtime is available for each pool |
10081008
| autohealing | | Defines whether the autohealing feature is enabled for the pool |
1009-
| tags.{index} | | Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags) |
1009+
| tags.{index} | | Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags) |
10101010
| kubelet-args.{key} | | Kubelet arguments to be used by this pool. Note that this feature is experimental |
10111011
| upgrade-policy.max-unavailable | | |
10121012
| upgrade-policy.max-surge | | |
@@ -1303,7 +1303,7 @@ scw k8s pool wait 11111111-1111-1111-1111-111111111111
13031303
## Available Kubernetes versions commands
13041304

13051305
A version is a vanilla Kubernetes version like `x.y.z`
1306-
It comprises a major version `x`, a minor version `y`, and a patch version `z`. At the minimum, Kapsule (Scaleway's managed Kubernetes), will support the last patch version for the past three minor releases. Also, each version has a different set of CNIs, eventually container runtimes, feature gates, and admission plugins available. See our [Version Support Policy](https://www.scaleway.com/en/docs/containers/kubernetes/reference-content/version-support-policy/).
1306+
It comprises a major version `x`, a minor version `y`, and a patch version `z`. At the minimum, Kapsule (Scaleway's managed Kubernetes), will support the last patch version for the past three minor releases. Also, each version has a different set of CNIs, eventually container runtimes, feature gates, and admission plugins available. See our [Version Support Policy](https://www.scaleway.com/en/docs/kubernetes/reference-content/version-support-policy/).
13071307

13081308

13091309
### Get a Version

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/mattn/go-isatty v0.0.20
2424
github.com/moby/buildkit v0.25.1
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251027091309-bd66551413a9
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251028151218-88e1f079af90
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.10.1
2929
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
462462
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
463463
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
464464
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
465-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251027091309-bd66551413a9 h1:mGfwXcngVnv7LLe36Ypjg22mNxrrnwEwPfKM5bWQyuQ=
466-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251027091309-bd66551413a9/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA=
465+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251028151218-88e1f079af90 h1:BiyhrAxCX4sUDQ0mQKs9z2Vd+rti9vekpoO9MpBNBBE=
466+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251028151218-88e1f079af90/go.mod h1:SVm1Zk6UpZtqZN6KtEQpjC+v+Lir4tyVfhQTU19q3PA=
467467
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
468468
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
469469
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/k8s/v1/k8s_cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func k8sVersion() *core.Command {
100100
return &core.Command{
101101
Short: `Available Kubernetes versions commands`,
102102
Long: `A version is a vanilla Kubernetes version like ` + "`" + `x.y.z` + "`" + `
103-
It comprises a major version ` + "`" + `x` + "`" + `, a minor version ` + "`" + `y` + "`" + `, and a patch version ` + "`" + `z` + "`" + `. At the minimum, Kapsule (Scaleway's managed Kubernetes), will support the last patch version for the past three minor releases. Also, each version has a different set of CNIs, eventually container runtimes, feature gates, and admission plugins available. See our [Version Support Policy](https://www.scaleway.com/en/docs/containers/kubernetes/reference-content/version-support-policy/).`,
103+
It comprises a major version ` + "`" + `x` + "`" + `, a minor version ` + "`" + `y` + "`" + `, and a patch version ` + "`" + `z` + "`" + `. At the minimum, Kapsule (Scaleway's managed Kubernetes), will support the last patch version for the past three minor releases. Also, each version has a different set of CNIs, eventually container runtimes, feature gates, and admission plugins available. See our [Version Support Policy](https://www.scaleway.com/en/docs/kubernetes/reference-content/version-support-policy/).`,
104104
Namespace: "k8s",
105105
Resource: "version",
106106
}
@@ -420,7 +420,7 @@ func k8sClusterCreate() *core.Command {
420420
},
421421
{
422422
Name: "pools.{index}.tags.{index}",
423-
Short: `Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags)`,
423+
Short: `Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags)`,
424424
Required: false,
425425
Deprecated: false,
426426
Positional: false,
@@ -1771,7 +1771,7 @@ func k8sPoolCreate() *core.Command {
17711771
},
17721772
{
17731773
Name: "tags.{index}",
1774-
Short: `Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/containers/kubernetes/api-cli/managing-tags)`,
1774+
Short: `Tags associated with the pool, see [managing tags](https://www.scaleway.com/en/docs/kubernetes/api-cli/managing-tags)`,
17751775
Required: false,
17761776
Deprecated: false,
17771777
Positional: false,

0 commit comments

Comments
 (0)