Skip to content

Commit

Permalink
feat: update generated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Sep 11, 2024
1 parent 9e09daf commit 8ddb347
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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 <cluster-id ...> [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
1 change: 1 addition & 0 deletions cmd/scw/testdata/test-all-usage-k8s-cluster-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
31 changes: 31 additions & 0 deletions docs/commands/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 <cluster-id ...> [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`<br />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.
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/tem.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`<br />One of: `fr-par`, `all` | Region to target. If none is passed will use default region from the config |
Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/tem/v1alpha1/tem_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8ddb347

Please sign in to comment.