From 8ddb3477493fd6a09a66e0db72f784679d22c5a9 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 11 Sep 2024 14:52:40 +0000 Subject: [PATCH] feat: update generated APIs --- ...8s-cluster-migrate-to-sbs-csi-usage.golden | 23 ++++++++++++++ .../test-all-usage-k8s-cluster-usage.golden | 1 + ...est-all-usage-tem-domain-list-usage.golden | 2 +- docs/commands/k8s.md | 31 +++++++++++++++++++ docs/commands/tem.md | 2 +- internal/namespaces/tem/v1alpha1/tem_cli.go | 2 +- 6 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 cmd/scw/testdata/test-all-usage-k8s-cluster-migrate-to-sbs-csi-usage.golden diff --git a/cmd/scw/testdata/test-all-usage-k8s-cluster-migrate-to-sbs-csi-usage.golden b/cmd/scw/testdata/test-all-usage-k8s-cluster-migrate-to-sbs-csi-usage.golden new file mode 100644 index 0000000000..34959b07be --- /dev/null +++ b/cmd/scw/testdata/test-all-usage-k8s-cluster-migrate-to-sbs-csi-usage.golden @@ -0,0 +1,23 @@ +🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 +πŸŸ₯πŸŸ₯πŸŸ₯ STDERR️️ πŸŸ₯πŸŸ₯πŸŸ₯️ +Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS. + +USAGE: + scw k8s cluster migrate-to-sbs-csi [arg=value ...] + +EXAMPLES: + Migrate a cluster to SBS CSI + scw k8s cluster migrate-to-sbs-csi 11111111-1111-1111-111111111111 + +ARGS: + cluster-id Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled + [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) + +FLAGS: + -h, --help help for migrate-to-sbs-csi + +GLOBAL FLAGS: + -c, --config string The path to the config file + -D, --debug Enable debug mode + -o, --output string Output format: json or human, see 'scw help output' for more info (default "human") + -p, --profile string The config profile to use diff --git a/cmd/scw/testdata/test-all-usage-k8s-cluster-usage.golden b/cmd/scw/testdata/test-all-usage-k8s-cluster-usage.golden index 2923e65d78..69cb5e0cd5 100644 --- a/cmd/scw/testdata/test-all-usage-k8s-cluster-usage.golden +++ b/cmd/scw/testdata/test-all-usage-k8s-cluster-usage.golden @@ -14,6 +14,7 @@ AVAILABLE COMMANDS: list-available-types List available cluster types for a cluster list-available-versions List available versions for a Cluster migrate-to-routed-ips Migrate a cluster to Routed IPs + migrate-to-sbs-csi Migrate a cluster to SBS CSI reset-admin-token Reset the admin token of a Cluster set-type Change the Cluster type update Update a Cluster diff --git a/cmd/scw/testdata/test-all-usage-tem-domain-list-usage.golden b/cmd/scw/testdata/test-all-usage-tem-domain-list-usage.golden index b50dcf3dfc..9c7665b279 100644 --- a/cmd/scw/testdata/test-all-usage-tem-domain-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-tem-domain-list-usage.golden @@ -7,7 +7,7 @@ USAGE: ARGS: [project-id] (Optional) ID of the Project in which to list the domains - [status.{index}] (Optional) List domains under specific statuses (unknown | checked | unchecked | invalid | locked | revoked | pending) + [status.{index}] (Optional) List domains under specific statuses (unknown | checked | unchecked | invalid | locked | revoked | pending | autoconfiguring) [name] (Optional) Names of the domains to list [organization-id] (Optional) ID of the Organization in which to list the domains [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | all) diff --git a/docs/commands/k8s.md b/docs/commands/k8s.md index 342a599623..2efe66c4ae 100644 --- a/docs/commands/k8s.md +++ b/docs/commands/k8s.md @@ -11,6 +11,7 @@ This API allows you to manage Kubernetes Kapsule and Kosmos clusters. - [List available cluster types for a cluster](#list-available-cluster-types-for-a-cluster) - [List available versions for a Cluster](#list-available-versions-for-a-cluster) - [Migrate a cluster to Routed IPs](#migrate-a-cluster-to-routed-ips) + - [Migrate a cluster to SBS CSI](#migrate-a-cluster-to-sbs-csi) - [Reset the admin token of a Cluster](#reset-the-admin-token-of-a-cluster) - [Change the Cluster type](#change-the-cluster-type) - [Update a Cluster](#update-a-cluster) @@ -347,6 +348,36 @@ scw k8s cluster migrate-to-routed-ips 11111111-1111-1111-111111111111 +### Migrate a cluster to SBS CSI + +Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS. + +**Usage:** + +``` +scw k8s cluster migrate-to-sbs-csi [arg=value ...] +``` + + +**Args:** + +| Name | | Description | +|------|---|-------------| +| cluster-id | Required | Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled | +| region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | + + +**Examples:** + + +Migrate a cluster to SBS CSI +``` +scw k8s cluster migrate-to-sbs-csi 11111111-1111-1111-111111111111 +``` + + + + ### Reset the admin token of a Cluster Reset the admin token for a specific Kubernetes cluster. This will revoke the old admin token (which will not be usable afterwards) and create a new one. Note that you will need to download kubeconfig again to keep interacting with the cluster. diff --git a/docs/commands/tem.md b/docs/commands/tem.md index eb273fda06..099a519ae8 100644 --- a/docs/commands/tem.md +++ b/docs/commands/tem.md @@ -129,7 +129,7 @@ scw tem domain list [arg=value ...] | Name | | Description | |------|---|-------------| | project-id | | (Optional) ID of the Project in which to list the domains | -| status.{index} | One of: `unknown`, `checked`, `unchecked`, `invalid`, `locked`, `revoked`, `pending` | (Optional) List domains under specific statuses | +| status.{index} | One of: `unknown`, `checked`, `unchecked`, `invalid`, `locked`, `revoked`, `pending`, `autoconfiguring` | (Optional) List domains under specific statuses | | name | | (Optional) Names of the domains to list | | organization-id | | (Optional) ID of the Organization in which to list the domains | | region | Default: `fr-par`
One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config | diff --git a/internal/namespaces/tem/v1alpha1/tem_cli.go b/internal/namespaces/tem/v1alpha1/tem_cli.go index e35bb48df7..f75cb2c695 100644 --- a/internal/namespaces/tem/v1alpha1/tem_cli.go +++ b/internal/namespaces/tem/v1alpha1/tem_cli.go @@ -563,7 +563,7 @@ func temDomainList() *core.Command { Required: false, Deprecated: false, Positional: false, - EnumValues: []string{"unknown", "checked", "unchecked", "invalid", "locked", "revoked", "pending"}, + EnumValues: []string{"unknown", "checked", "unchecked", "invalid", "locked", "revoked", "pending", "autoconfiguring"}, }, { Name: "name",