Skip to content

Commit 6a01239

Browse files
scaleway-botyfodil
andauthored
chore(k8s): remove migrate-to-routed-ips (scaleway#4212)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent b7d4601 commit 6a01239

File tree

3 files changed

+0
-69
lines changed

3 files changed

+0
-69
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ AVAILABLE COMMANDS:
1313
list List Clusters
1414
list-available-types List available cluster types for a cluster
1515
list-available-versions List available versions for a Cluster
16-
migrate-to-routed-ips Migrate a cluster to Routed IPs
1716
migrate-to-sbs-csi Migrate a cluster to SBS CSI
1817
reset-admin-token Reset the admin token of a Cluster
1918
set-type Change the Cluster type

docs/commands/k8s.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ This API allows you to manage Kubernetes Kapsule and Kosmos clusters.
1010
- [List Clusters](#list-clusters)
1111
- [List available cluster types for a cluster](#list-available-cluster-types-for-a-cluster)
1212
- [List available versions for a Cluster](#list-available-versions-for-a-cluster)
13-
- [Migrate a cluster to Routed IPs](#migrate-a-cluster-to-routed-ips)
1413
- [Migrate a cluster to SBS CSI](#migrate-a-cluster-to-sbs-csi)
1514
- [Reset the admin token of a Cluster](#reset-the-admin-token-of-a-cluster)
1615
- [Change the Cluster type](#change-the-cluster-type)
@@ -318,36 +317,6 @@ scw k8s cluster list-available-versions 11111111-1111-1111-111111111111
318317

319318

320319

321-
### Migrate a cluster to Routed IPs
322-
323-
Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes.
324-
325-
**Usage:**
326-
327-
```
328-
scw k8s cluster migrate-to-routed-ips <cluster-id ...> [arg=value ...]
329-
```
330-
331-
332-
**Args:**
333-
334-
| Name | | Description |
335-
|------|---|-------------|
336-
| cluster-id | Required | Cluster ID for which the routed ip will be enabled for the nodes |
337-
| 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 |
338-
339-
340-
**Examples:**
341-
342-
343-
Migrate a cluster to Routed IPs
344-
```
345-
scw k8s cluster migrate-to-routed-ips 11111111-1111-1111-111111111111
346-
```
347-
348-
349-
350-
351320
### Migrate a cluster to SBS CSI
352321

353322
Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS.

internal/namespaces/k8s/v1/k8s_cli.go

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ func GetGeneratedCommands() *core.Commands {
3636
k8sClusterListAvailableVersions(),
3737
k8sClusterListAvailableTypes(),
3838
k8sClusterResetAdminToken(),
39-
k8sClusterMigrateToRoutedIPs(),
4039
k8sClusterMigrateToSbsCsi(),
4140
k8sPoolList(),
4241
k8sPoolCreate(),
@@ -1161,42 +1160,6 @@ func k8sClusterResetAdminToken() *core.Command {
11611160
}
11621161
}
11631162

1164-
func k8sClusterMigrateToRoutedIPs() *core.Command {
1165-
return &core.Command{
1166-
Short: `Migrate a cluster to Routed IPs`,
1167-
Long: `Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes.`,
1168-
Namespace: "k8s",
1169-
Resource: "cluster",
1170-
Verb: "migrate-to-routed-ips",
1171-
// Deprecated: false,
1172-
ArgsType: reflect.TypeOf(k8s.MigrateClusterToRoutedIPsRequest{}),
1173-
ArgSpecs: core.ArgSpecs{
1174-
{
1175-
Name: "cluster-id",
1176-
Short: `Cluster ID for which the routed ip will be enabled for the nodes`,
1177-
Required: true,
1178-
Deprecated: false,
1179-
Positional: true,
1180-
},
1181-
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
1182-
},
1183-
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
1184-
request := args.(*k8s.MigrateClusterToRoutedIPsRequest)
1185-
1186-
client := core.ExtractClient(ctx)
1187-
api := k8s.NewAPI(client)
1188-
return api.MigrateClusterToRoutedIPs(request)
1189-
1190-
},
1191-
Examples: []*core.Example{
1192-
{
1193-
Short: "Migrate a cluster to Routed IPs",
1194-
Raw: `scw k8s cluster migrate-to-routed-ips 11111111-1111-1111-111111111111`,
1195-
},
1196-
},
1197-
}
1198-
}
1199-
12001163
func k8sClusterMigrateToSbsCsi() *core.Command {
12011164
return &core.Command{
12021165
Short: `Migrate a cluster to SBS CSI`,

0 commit comments

Comments
 (0)