Skip to content

Commit b97ae11

Browse files
authored
feat(k8s): add nl-ams region (#1107)
1 parent b9d022d commit b97ae11

21 files changed

+40
-40
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ARGS:
4242
[feature-gates.{index}] List of feature gates to enable
4343
[admission-plugins.{index}] List of admission plugins to enable
4444
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
45-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
45+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
4646

4747
FLAGS:
4848
-h, --help help for create

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ EXAMPLES:
1010
ARGS:
1111
cluster-id The ID of the cluster to delete
1212
[with-additional-resources] Set true if you want to delete all volumes (including retain volume type) and loadbalancers whose name start with cluster ID
13-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
13+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1414

1515
FLAGS:
1616
-h, --help help for delete

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXAMPLES:
99

1010
ARGS:
1111
cluster-id The ID of the requested cluster
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1313

1414
FLAGS:
1515
-h, --help help for get

cmd/scw/testdata/test-all-usage-k8s-cluster-list-available-versions-usage.stderr.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXAMPLES:
99

1010
ARGS:
1111
cluster-id The ID of the cluster which the available Kuberentes versions will be listed from
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1313

1414
FLAGS:
1515
-h, --help help for list-available-versions

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ARGS:
1818
[name] The name on which to filter the returned clusters
1919
[status] The status on which to filter the returned clusters (unknown | creating | ready | deleting | deleted | updating | locked | pool_required)
2020
[organization-id] The organization ID on which to filter the returned clusters
21-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
21+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
2222

2323
FLAGS:
2424
-h, --help help for list

cmd/scw/testdata/test-all-usage-k8s-cluster-reset-admin-token-usage.stderr.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXAMPLES:
99

1010
ARGS:
1111
cluster-id The ID of the cluster of which the admin token will be renewed
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1313

1414
FLAGS:
1515
-h, --help help for reset-admin-token

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ARGS:
3030
[auto-upgrade.maintenance-window.day] The day of the week for the maintenance window (any | monday | tuesday | wednesday | thursday | friday | saturday | sunday)
3131
[feature-gates.{index}] List of feature gates to enable
3232
[admission-plugins.{index}] List of admission plugins to enable
33-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
33+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
3434

3535
FLAGS:
3636
-h, --help help for update

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ARGS:
1414
cluster-id The ID of the cluster to upgrade
1515
version The new Kubernetes version of the cluster
1616
[upgrade-pools] The enablement of the pools upgrade
17-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
17+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1818

1919
FLAGS:
2020
-h, --help help for upgrade

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXAMPLES:
99

1010
ARGS:
1111
node-id The ID of the requested node
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1313

1414
FLAGS:
1515
-h, --help help for get

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ARGS:
1919
[order-by] The sort order of the returned nodes (created_at_asc | created_at_desc)
2020
[name] The name on which to filter the returned nodes
2121
[status] The status on which to filter the returned nodes (unknown | creating | not_ready | ready | deleting | deleted | locked | rebooting | creation_error)
22-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
22+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
2323

2424
FLAGS:
2525
-h, --help help for list

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXAMPLES:
99

1010
ARGS:
1111
node-id The ID of the node to reboot
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1313

1414
FLAGS:
1515
-h, --help help for reboot

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXAMPLES:
99

1010
ARGS:
1111
node-id The ID of the node to replace
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1313

1414
FLAGS:
1515
-h, --help help for replace

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ARGS:
2525
[container-runtime] The container runtime for the nodes of the pool (unknown_runtime | docker | containerd | crio)
2626
[autohealing] The enablement of the autohealing feature for the pool
2727
[tags.{index}] The tags associated with the pool
28-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
28+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
2929

3030
FLAGS:
3131
-h, --help help for create

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXAMPLES:
99

1010
ARGS:
1111
pool-id The ID of the pool to delete
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1313

1414
FLAGS:
1515
-h, --help help for delete

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXAMPLES:
99

1010
ARGS:
1111
pool-id The ID of the requested pool
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1313

1414
FLAGS:
1515
-h, --help help for get

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ARGS:
2121
[order-by] The sort order of the returned pools (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc | name_asc | name_desc | status_asc | status_desc | version_asc | version_desc)
2222
[name] The name on which to filter the returned pools
2323
[status] The status on which to filter the returned pools (unknown | ready | deleting | deleted | scaling | warning | locked | upgrading)
24-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
24+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
2525

2626
FLAGS:
2727
-h, --help help for list

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ARGS:
2121
[max-size] The new maximum size for the pool
2222
[autohealing] The new value for the enablement of autohealing for the pool
2323
[tags.{index}] The new tags associated with the pool
24-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
24+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
2525

2626
FLAGS:
2727
-h, --help help for update

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ EXAMPLES:
1010
ARGS:
1111
pool-id The ID of the pool to upgrade
1212
version The new Kubernetes version for the pool
13-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
13+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1414

1515
FLAGS:
1616
-h, --help help for upgrade

cmd/scw/testdata/test-all-usage-k8s-version-get-usage.stderr.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXAMPLES:
99

1010
ARGS:
1111
version-name The requested version name
12-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1313

1414
FLAGS:
1515
-h, --help help for get

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ EXAMPLES:
88
scw k8s version list
99

1010
ARGS:
11-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
1212

1313
FLAGS:
1414
-h, --help help for list

internal/namespaces/k8s/v1/k8s_cli.go

+20-20
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func k8sClusterList() *core.Command {
139139
Required: false,
140140
Positional: false,
141141
},
142-
core.RegionArgSpec(scw.RegionFrPar),
142+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
143143
},
144144
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
145145
request := args.(*k8s.ListClustersRequest)
@@ -403,7 +403,7 @@ func k8sClusterCreate() *core.Command {
403403
Positional: false,
404404
},
405405
core.OrganizationIDArgSpec(),
406-
core.RegionArgSpec(scw.RegionFrPar),
406+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
407407
},
408408
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
409409
request := args.(*k8s.CreateClusterRequest)
@@ -441,7 +441,7 @@ func k8sClusterGet() *core.Command {
441441
Required: true,
442442
Positional: true,
443443
},
444-
core.RegionArgSpec(scw.RegionFrPar),
444+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
445445
},
446446
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
447447
request := args.(*k8s.GetClusterRequest)
@@ -587,7 +587,7 @@ func k8sClusterUpdate() *core.Command {
587587
Required: false,
588588
Positional: false,
589589
},
590-
core.RegionArgSpec(scw.RegionFrPar),
590+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
591591
},
592592
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
593593
request := args.(*k8s.UpdateClusterRequest)
@@ -631,7 +631,7 @@ func k8sClusterDelete() *core.Command {
631631
Required: false,
632632
Positional: false,
633633
},
634-
core.RegionArgSpec(scw.RegionFrPar),
634+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
635635
},
636636
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
637637
request := args.(*k8s.DeleteClusterRequest)
@@ -677,7 +677,7 @@ func k8sClusterUpgrade() *core.Command {
677677
Required: false,
678678
Positional: false,
679679
},
680-
core.RegionArgSpec(scw.RegionFrPar),
680+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
681681
},
682682
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
683683
request := args.(*k8s.UpgradeClusterRequest)
@@ -715,7 +715,7 @@ func k8sClusterListAvailableVersions() *core.Command {
715715
Required: true,
716716
Positional: true,
717717
},
718-
core.RegionArgSpec(scw.RegionFrPar),
718+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
719719
},
720720
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
721721
request := args.(*k8s.ListClusterAvailableVersionsRequest)
@@ -763,7 +763,7 @@ func k8sClusterResetAdminToken() *core.Command {
763763
Required: true,
764764
Positional: true,
765765
},
766-
core.RegionArgSpec(scw.RegionFrPar),
766+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
767767
},
768768
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
769769
request := args.(*k8s.ResetClusterAdminTokenRequest)
@@ -823,7 +823,7 @@ func k8sPoolList() *core.Command {
823823
Positional: false,
824824
EnumValues: []string{"unknown", "ready", "deleting", "deleted", "scaling", "warning", "locked", "upgrading"},
825825
},
826-
core.RegionArgSpec(scw.RegionFrPar),
826+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
827827
},
828828
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
829829
request := args.(*k8s.ListPoolsRequest)
@@ -987,7 +987,7 @@ func k8sPoolCreate() *core.Command {
987987
Required: false,
988988
Positional: false,
989989
},
990-
core.RegionArgSpec(scw.RegionFrPar),
990+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
991991
},
992992
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
993993
request := args.(*k8s.CreatePoolRequest)
@@ -1029,7 +1029,7 @@ func k8sPoolGet() *core.Command {
10291029
Required: true,
10301030
Positional: true,
10311031
},
1032-
core.RegionArgSpec(scw.RegionFrPar),
1032+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
10331033
},
10341034
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
10351035
request := args.(*k8s.GetPoolRequest)
@@ -1069,7 +1069,7 @@ func k8sPoolUpgrade() *core.Command {
10691069
Required: true,
10701070
Positional: false,
10711071
},
1072-
core.RegionArgSpec(scw.RegionFrPar),
1072+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
10731073
},
10741074
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
10751075
request := args.(*k8s.UpgradePoolRequest)
@@ -1139,7 +1139,7 @@ func k8sPoolUpdate() *core.Command {
11391139
Required: false,
11401140
Positional: false,
11411141
},
1142-
core.RegionArgSpec(scw.RegionFrPar),
1142+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
11431143
},
11441144
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
11451145
request := args.(*k8s.UpdatePoolRequest)
@@ -1181,7 +1181,7 @@ func k8sPoolDelete() *core.Command {
11811181
Required: true,
11821182
Positional: true,
11831183
},
1184-
core.RegionArgSpec(scw.RegionFrPar),
1184+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
11851185
},
11861186
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
11871187
request := args.(*k8s.DeletePoolRequest)
@@ -1241,7 +1241,7 @@ func k8sNodeList() *core.Command {
12411241
Positional: false,
12421242
EnumValues: []string{"unknown", "creating", "not_ready", "ready", "deleting", "deleted", "locked", "rebooting", "creation_error"},
12431243
},
1244-
core.RegionArgSpec(scw.RegionFrPar),
1244+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
12451245
},
12461246
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
12471247
request := args.(*k8s.ListNodesRequest)
@@ -1319,7 +1319,7 @@ func k8sNodeGet() *core.Command {
13191319
Required: true,
13201320
Positional: true,
13211321
},
1322-
core.RegionArgSpec(scw.RegionFrPar),
1322+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
13231323
},
13241324
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
13251325
request := args.(*k8s.GetNodeRequest)
@@ -1353,7 +1353,7 @@ func k8sNodeReplace() *core.Command {
13531353
Required: true,
13541354
Positional: true,
13551355
},
1356-
core.RegionArgSpec(scw.RegionFrPar),
1356+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
13571357
},
13581358
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
13591359
request := args.(*k8s.ReplaceNodeRequest)
@@ -1387,7 +1387,7 @@ func k8sNodeReboot() *core.Command {
13871387
Required: true,
13881388
Positional: true,
13891389
},
1390-
core.RegionArgSpec(scw.RegionFrPar),
1390+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
13911391
},
13921392
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
13931393
request := args.(*k8s.RebootNodeRequest)
@@ -1415,7 +1415,7 @@ func k8sVersionList() *core.Command {
14151415
Verb: "list",
14161416
ArgsType: reflect.TypeOf(k8s.ListVersionsRequest{}),
14171417
ArgSpecs: core.ArgSpecs{
1418-
core.RegionArgSpec(scw.RegionFrPar),
1418+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
14191419
},
14201420
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
14211421
request := args.(*k8s.ListVersionsRequest)
@@ -1469,7 +1469,7 @@ func k8sVersionGet() *core.Command {
14691469
Required: true,
14701470
Positional: true,
14711471
},
1472-
core.RegionArgSpec(scw.RegionFrPar),
1472+
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
14731473
},
14741474
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
14751475
request := args.(*k8s.GetVersionRequest)

0 commit comments

Comments
 (0)