Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cmd/scw/testdata/test-all-usage-k8s-cluster-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ AVAILABLE COMMANDS:
list List Clusters
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
Expand Down
31 changes: 0 additions & 31 deletions docs/commands/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ This API allows you to manage Kubernetes Kapsule and Kosmos clusters.
- [List Clusters](#list-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)
Expand Down Expand Up @@ -318,36 +317,6 @@ scw k8s cluster list-available-versions 11111111-1111-1111-111111111111



### Migrate a cluster to Routed IPs

Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes.

**Usage:**

```
scw k8s cluster migrate-to-routed-ips <cluster-id ...> [arg=value ...]
```


**Args:**

| Name | | Description |
|------|---|-------------|
| cluster-id | Required | Cluster ID for which the routed ip will be enabled for the nodes |
| 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 Routed IPs
```
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.
Expand Down
37 changes: 0 additions & 37 deletions internal/namespaces/k8s/v1/k8s_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func GetGeneratedCommands() *core.Commands {
k8sClusterListAvailableVersions(),
k8sClusterListAvailableTypes(),
k8sClusterResetAdminToken(),
k8sClusterMigrateToRoutedIPs(),
k8sClusterMigrateToSbsCsi(),
k8sPoolList(),
k8sPoolCreate(),
Expand Down Expand Up @@ -1161,42 +1160,6 @@ func k8sClusterResetAdminToken() *core.Command {
}
}

func k8sClusterMigrateToRoutedIPs() *core.Command {
return &core.Command{
Short: `Migrate a cluster to Routed IPs`,
Long: `Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes.`,
Namespace: "k8s",
Resource: "cluster",
Verb: "migrate-to-routed-ips",
// Deprecated: false,
ArgsType: reflect.TypeOf(k8s.MigrateClusterToRoutedIPsRequest{}),
ArgSpecs: core.ArgSpecs{
{
Name: "cluster-id",
Short: `Cluster ID for which the routed ip will be enabled for the nodes`,
Required: true,
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.MigrateClusterToRoutedIPsRequest)

client := core.ExtractClient(ctx)
api := k8s.NewAPI(client)
return api.MigrateClusterToRoutedIPs(request)

},
Examples: []*core.Example{
{
Short: "Migrate a cluster to Routed IPs",
Raw: `scw k8s cluster migrate-to-routed-ips 11111111-1111-1111-111111111111`,
},
},
}
}

func k8sClusterMigrateToSbsCsi() *core.Command {
return &core.Command{
Short: `Migrate a cluster to SBS CSI`,
Expand Down
Loading