Skip to content

Commit 922e2d9

Browse files
authored
feat(k8s): remove migrate-to-private-network command usage (#3841)
1 parent 0e29eec commit 922e2d9

File tree

4 files changed

+6
-102
lines changed

4 files changed

+6
-102
lines changed

cmd/scw/testdata/test-all-usage-k8s-cluster-migrate-to-private-network-usage.golden

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Migrate a cluster that was created before the release of Private Network clusters to a new one with a Private Network. If none is provided, a private network will be created
3+
Migrate a cluster that was created before the release of Private Network clusters to a new one with a Private Network.
44

55
USAGE:
66
scw k8s cluster migrate-to-private-network <cluster-id ...> [arg=value ...]
@@ -10,9 +10,9 @@ EXAMPLES:
1010
scw k8s cluster migrate-to-private-network 11111111-1111-1111-111111111111 private-network-id=11111111-1111-1111-111111111111
1111

1212
ARGS:
13-
cluster-id ID of the cluster to migrate
14-
[private-network-id] ID of the Private Network to link to the cluster. If none is provided, a private network will be created
15-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
13+
cluster-id ID of the cluster to migrate
14+
private-network-id ID of the Private Network to link to the cluster
15+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1616

1717
FLAGS:
1818
-h, --help help for migrate-to-private-network

docs/commands/k8s.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ scw k8s cluster list-available-versions 11111111-1111-1111-111111111111
304304

305305
### Migrate an existing cluster to a Private Network cluster
306306

307-
Migrate a cluster that was created before the release of Private Network clusters to a new one with a Private Network. If none is provided, a private network will be created
307+
Migrate a cluster that was created before the release of Private Network clusters to a new one with a Private Network.
308308

309309
**Usage:**
310310

@@ -318,7 +318,7 @@ scw k8s cluster migrate-to-private-network <cluster-id ...> [arg=value ...]
318318
| Name | | Description |
319319
|------|---|-------------|
320320
| cluster-id | Required | ID of the cluster to migrate |
321-
| private-network-id | | ID of the Private Network to link to the cluster. If none is provided, a private network will be created |
321+
| private-network-id | Required | ID of the Private Network to link to the cluster |
322322
| 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 |
323323

324324

internal/namespaces/k8s/v1/custom.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ func GetCommands() *core.Commands {
3737
cmds.MustFind("k8s", "cluster", "update").Override(clusterUpdateBuilder)
3838
cmds.MustFind("k8s", "cluster", "upgrade").Override(clusterUpgradeBuilder)
3939
cmds.MustFind("k8s", "cluster", "delete").Override(clusterDeleteBuilder)
40-
cmds.MustFind("k8s", "cluster", "migrate-to-private-network").Override(clusterMigrateToPrivateNetworkBuilder)
4140
cmds.MustFind("k8s", "pool", "create").Override(poolCreateBuilder)
4241
cmds.MustFind("k8s", "pool", "update").Override(poolUpdateBuilder)
4342
cmds.MustFind("k8s", "pool", "upgrade").Override(poolUpgradeBuilder)

internal/namespaces/k8s/v1/custom_migrate.go

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)