Skip to content

Commit 9982c14

Browse files
authored
feat: add timeout argument to wait commands (#3102)
1 parent a2aed3d commit 9982c14

32 files changed

+104
-27
lines changed

cmd/scw/testdata/test-all-usage-apple-silicon-server-wait-usage.golden

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ EXAMPLES:
1010
scw apple-silicon server wait 11111111-1111-1111-1111-111111111111
1111

1212
ARGS:
13-
server-id ID of the server.
14-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
13+
server-id ID of the server.
14+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
15+
[timeout=1h0m0s] Timeout of the wait
1516

1617
FLAGS:
1718
-h, --help help for wait

cmd/scw/testdata/test-all-usage-baremetal-server-wait-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ EXAMPLES:
1212
ARGS:
1313
server-id ID of the server affected by the action.
1414
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
15+
[timeout=20m0s] Timeout of the wait
1516

1617
FLAGS:
1718
-h, --help help for wait

cmd/scw/testdata/test-all-usage-cockpit-cockpit-wait-usage.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ EXAMPLES:
1010
scw cockpit cockpit wait 11111111-1111-1111-1111-111111111111
1111

1212
ARGS:
13-
project-id The ID of the project the cockpit is attached to
13+
project-id The ID of the project the cockpit is attached to
14+
[timeout=3m0s] Timeout of the wait
1415

1516
FLAGS:
1617
-h, --help help for wait

cmd/scw/testdata/test-all-usage-instance-image-wait-usage.golden

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ EXAMPLES:
1010
scw instance image wait 11111111-1111-1111-1111-111111111111
1111

1212
ARGS:
13-
image-id ID of the image.
14-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
13+
image-id ID of the image.
14+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
15+
[timeout=1h0m0s] Timeout of the wait
1516

1617
FLAGS:
1718
-h, --help help for wait

cmd/scw/testdata/test-all-usage-instance-server-wait-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ EXAMPLES:
1010
scw instance server wait 11111111-1111-1111-1111-111111111111
1111

1212
ARGS:
13+
[timeout=10m0s] Timeout of the wait
1314
server-id ID of the server affected by the action.
1415
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
1516

cmd/scw/testdata/test-all-usage-instance-snapshot-wait-usage.golden

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ EXAMPLES:
1010
scw instance snapshot wait 11111111-1111-1111-1111-111111111111
1111

1212
ARGS:
13-
snapshot-id ID of the snapshot.
14-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
13+
snapshot-id ID of the snapshot.
14+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config
15+
[timeout=1h0m0s] Timeout of the wait
1516

1617
FLAGS:
1718
-h, --help help for wait

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARGS:
1313
cluster-id ID of the cluster.
1414
[wait-for-pools] Wait for pools to be ready.
1515
[region=fr-par] Region to target. If none is passed will use default region from the config
16+
[timeout=10m0s] Timeout of the wait
1617

1718
FLAGS:
1819
-h, --help help for wait

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ EXAMPLES:
1212
ARGS:
1313
node-id ID of the node.
1414
[region=fr-par] Region to target. If none is passed will use default region from the config
15+
[timeout=10m0s] Timeout of the wait
1516

1617
FLAGS:
1718
-h, --help help for wait

cmd/scw/testdata/test-all-usage-k8s-pool-wait-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ EXAMPLES:
1212
ARGS:
1313
pool-id ID of the pool.
1414
[region=fr-par] Region to target. If none is passed will use default region from the config
15+
[timeout=10m0s] Timeout of the wait
1516

1617
FLAGS:
1718
-h, --help help for wait

cmd/scw/testdata/test-all-usage-lblb-wait-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ EXAMPLES:
1212
ARGS:
1313
lb-id ID of the load balancer you want to wait for.
1414
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | pl-waw-1 | nl-ams-1)
15+
[timeout=10m0s] Timeout of the wait
1516

1617
FLAGS:
1718
-h, --help help for wait

0 commit comments

Comments
 (0)