Skip to content

Commit 0466506

Browse files
docs(k8s): missing argument (#2756)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 81bd593 commit 0466506

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

cmd/scw/testdata/test-all-usage-k8s-node-list-usage.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ USAGE:
77

88
EXAMPLES:
99
List all the nodes in the given cluster
10-
scw k8s node list 11111111-1111-1111-111111111111
10+
scw k8s node list cluster-id=11111111-1111-1111-111111111111
1111

1212
List all the nodes in the pool 2222222222222-2222-222222222222 in the given cluster
13-
scw k8s node list 11111111-1111-1111-111111111111 pool-id=2222222222222-2222-222222222222
13+
scw k8s node list cluster-id=11111111-1111-1111-111111111111 pool-id=2222222222222-2222-222222222222
1414

1515
List all ready nodes in the given cluster
16-
scw k8s node list 11111111-1111-1111-111111111111 status=ready
16+
scw k8s node list cluster-id=11111111-1111-1111-111111111111 status=ready
1717

1818
ARGS:
1919
cluster-id The cluster ID from which the nodes will be listed from

docs/commands/k8s.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,17 +629,17 @@ scw k8s node list [arg=value ...]
629629

630630
List all the nodes in the given cluster
631631
```
632-
scw k8s node list 11111111-1111-1111-111111111111
632+
scw k8s node list cluster-id=11111111-1111-1111-111111111111
633633
```
634634

635635
List all the nodes in the pool 2222222222222-2222-222222222222 in the given cluster
636636
```
637-
scw k8s node list 11111111-1111-1111-111111111111 pool-id=2222222222222-2222-222222222222
637+
scw k8s node list cluster-id=11111111-1111-1111-111111111111 pool-id=2222222222222-2222-222222222222
638638
```
639639

640640
List all ready nodes in the given cluster
641641
```
642-
scw k8s node list 11111111-1111-1111-111111111111 status=ready
642+
scw k8s node list cluster-id=11111111-1111-1111-111111111111 status=ready
643643
```
644644

645645

internal/namespaces/k8s/v1/k8s_cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,15 +1658,15 @@ func k8sNodeList() *core.Command {
16581658
Examples: []*core.Example{
16591659
{
16601660
Short: "List all the nodes in the given cluster",
1661-
Raw: `scw k8s node list 11111111-1111-1111-111111111111`,
1661+
Raw: `scw k8s node list cluster-id=11111111-1111-1111-111111111111`,
16621662
},
16631663
{
16641664
Short: "List all the nodes in the pool 2222222222222-2222-222222222222 in the given cluster",
1665-
Raw: `scw k8s node list 11111111-1111-1111-111111111111 pool-id=2222222222222-2222-222222222222`,
1665+
Raw: `scw k8s node list cluster-id=11111111-1111-1111-111111111111 pool-id=2222222222222-2222-222222222222`,
16661666
},
16671667
{
16681668
Short: "List all ready nodes in the given cluster",
1669-
Raw: `scw k8s node list 11111111-1111-1111-111111111111 status=ready`,
1669+
Raw: `scw k8s node list cluster-id=11111111-1111-1111-111111111111 status=ready`,
16701670
},
16711671
},
16721672
View: &core.View{Fields: []*core.ViewField{

0 commit comments

Comments
 (0)