Skip to content

Commit 4949847

Browse files
committed
update doc
1 parent f450224 commit 4949847

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/commands/k8s.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Kubernetes API.
1414
- [Update a Cluster](#update-a-cluster)
1515
- [Upgrade a Cluster](#upgrade-a-cluster)
1616
- [Wait for a cluster to reach a stable state](#wait-for-a-cluster-to-reach-a-stable-state)
17-
- [Manage your Kubernetes Kapsule cluster's kubeconfig files](#manage-your-kubernetes-kapsule-cluster's-kubeconfig-files)
17+
- [Manage your Kubernetes Kapsule cluster's kubeconfig files](#manage-your-kubernetes-kapsule-clusters-kubeconfig-files)
1818
- [Retrieve a kubeconfig](#retrieve-a-kubeconfig)
1919
- [Install a kubeconfig](#install-a-kubeconfig)
2020
- [Uninstall a kubeconfig](#uninstall-a-kubeconfig)
@@ -37,7 +37,6 @@ Kubernetes API.
3737
- [Get a Version](#get-a-version)
3838
- [List all available Versions](#list-all-available-versions)
3939

40-
4140
## Kapsule cluster management commands
4241

4342
A cluster is a fully managed Kubernetes cluster
@@ -286,7 +285,7 @@ scw k8s cluster migrate-to-private-network <cluster-id ...> [arg=value ...]
286285
| Name | | Description |
287286
|------|---|-------------|
288287
| cluster-id | Required | ID of the cluster to migrate |
289-
| private-network-id | Required | ID of the Private Network to link to the cluster |
288+
| private-network-id | | ID of the Private Network to link to the cluster |
290289
| 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 |
291290

292291

internal/namespaces/k8s/v1/custom_migrate.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import (
1313
func clusterMigrateToPrivateNetworkBuilder(c *core.Command) *core.Command {
1414
c.ArgSpecs.GetByName("private-network-id").Required = false
1515

16+
infoPNID := " If none is provided, a private network will be created"
17+
c.Long += infoPNID
18+
c.ArgSpecs.GetByName("private-network-id").Short += "." + infoPNID
19+
1620
c.Run = func(ctx context.Context, args interface{}) (i interface{}, e error) {
1721
request := args.(*k8s.MigrateToPrivateNetworkClusterRequest)
1822
client := core.ExtractClient(ctx)

0 commit comments

Comments
 (0)