Skip to content

Commit

Permalink
feat(k8s): add nl-ams region (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Jun 17, 2020
1 parent b9d022d commit b97ae11
Show file tree
Hide file tree
Showing 21 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ARGS:
[feature-gates.{index}] List of feature gates to enable
[admission-plugins.{index}] List of admission plugins to enable
[organization-id] Organization ID to use. If none is passed will use default organization ID from the config
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ EXAMPLES:
ARGS:
cluster-id The ID of the cluster to delete
[with-additional-resources] Set true if you want to delete all volumes (including retain volume type) and loadbalancers whose name start with cluster ID
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXAMPLES:

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

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXAMPLES:

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

FLAGS:
-h, --help help for list-available-versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ARGS:
[name] The name on which to filter the returned clusters
[status] The status on which to filter the returned clusters (unknown | creating | ready | deleting | deleted | updating | locked | pool_required)
[organization-id] The organization ID on which to filter the returned clusters
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXAMPLES:

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

FLAGS:
-h, --help help for reset-admin-token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ARGS:
[auto-upgrade.maintenance-window.day] The day of the week for the maintenance window (any | monday | tuesday | wednesday | thursday | friday | saturday | sunday)
[feature-gates.{index}] List of feature gates to enable
[admission-plugins.{index}] List of admission plugins to enable
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ARGS:
cluster-id The ID of the cluster to upgrade
version The new Kubernetes version of the cluster
[upgrade-pools] The enablement of the pools upgrade
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for upgrade
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXAMPLES:

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

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARGS:
[order-by] The sort order of the returned nodes (created_at_asc | created_at_desc)
[name] The name on which to filter the returned nodes
[status] The status on which to filter the returned nodes (unknown | creating | not_ready | ready | deleting | deleted | locked | rebooting | creation_error)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXAMPLES:

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

FLAGS:
-h, --help help for reboot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXAMPLES:

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

FLAGS:
-h, --help help for replace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARGS:
[container-runtime] The container runtime for the nodes of the pool (unknown_runtime | docker | containerd | crio)
[autohealing] The enablement of the autohealing feature for the pool
[tags.{index}] The tags associated with the pool
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXAMPLES:

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

FLAGS:
-h, --help help for delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXAMPLES:

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

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ARGS:
[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)
[name] The name on which to filter the returned pools
[status] The status on which to filter the returned pools (unknown | ready | deleting | deleted | scaling | warning | locked | upgrading)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ARGS:
[max-size] The new maximum size for the pool
[autohealing] The new value for the enablement of autohealing for the pool
[tags.{index}] The new tags associated with the pool
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ EXAMPLES:
ARGS:
pool-id The ID of the pool to upgrade
version The new Kubernetes version for the pool
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

FLAGS:
-h, --help help for upgrade
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ EXAMPLES:

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

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ EXAMPLES:
scw k8s version list

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

FLAGS:
-h, --help help for list
Expand Down
40 changes: 20 additions & 20 deletions internal/namespaces/k8s/v1/k8s_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func k8sClusterList() *core.Command {
Required: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListClustersRequest)
Expand Down Expand Up @@ -403,7 +403,7 @@ func k8sClusterCreate() *core.Command {
Positional: false,
},
core.OrganizationIDArgSpec(),
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.CreateClusterRequest)
Expand Down Expand Up @@ -441,7 +441,7 @@ func k8sClusterGet() *core.Command {
Required: true,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.GetClusterRequest)
Expand Down Expand Up @@ -587,7 +587,7 @@ func k8sClusterUpdate() *core.Command {
Required: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.UpdateClusterRequest)
Expand Down Expand Up @@ -631,7 +631,7 @@ func k8sClusterDelete() *core.Command {
Required: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.DeleteClusterRequest)
Expand Down Expand Up @@ -677,7 +677,7 @@ func k8sClusterUpgrade() *core.Command {
Required: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.UpgradeClusterRequest)
Expand Down Expand Up @@ -715,7 +715,7 @@ func k8sClusterListAvailableVersions() *core.Command {
Required: true,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListClusterAvailableVersionsRequest)
Expand Down Expand Up @@ -763,7 +763,7 @@ func k8sClusterResetAdminToken() *core.Command {
Required: true,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ResetClusterAdminTokenRequest)
Expand Down Expand Up @@ -823,7 +823,7 @@ func k8sPoolList() *core.Command {
Positional: false,
EnumValues: []string{"unknown", "ready", "deleting", "deleted", "scaling", "warning", "locked", "upgrading"},
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListPoolsRequest)
Expand Down Expand Up @@ -987,7 +987,7 @@ func k8sPoolCreate() *core.Command {
Required: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.CreatePoolRequest)
Expand Down Expand Up @@ -1029,7 +1029,7 @@ func k8sPoolGet() *core.Command {
Required: true,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.GetPoolRequest)
Expand Down Expand Up @@ -1069,7 +1069,7 @@ func k8sPoolUpgrade() *core.Command {
Required: true,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.UpgradePoolRequest)
Expand Down Expand Up @@ -1139,7 +1139,7 @@ func k8sPoolUpdate() *core.Command {
Required: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.UpdatePoolRequest)
Expand Down Expand Up @@ -1181,7 +1181,7 @@ func k8sPoolDelete() *core.Command {
Required: true,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.DeletePoolRequest)
Expand Down Expand Up @@ -1241,7 +1241,7 @@ func k8sNodeList() *core.Command {
Positional: false,
EnumValues: []string{"unknown", "creating", "not_ready", "ready", "deleting", "deleted", "locked", "rebooting", "creation_error"},
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListNodesRequest)
Expand Down Expand Up @@ -1319,7 +1319,7 @@ func k8sNodeGet() *core.Command {
Required: true,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.GetNodeRequest)
Expand Down Expand Up @@ -1353,7 +1353,7 @@ func k8sNodeReplace() *core.Command {
Required: true,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ReplaceNodeRequest)
Expand Down Expand Up @@ -1387,7 +1387,7 @@ func k8sNodeReboot() *core.Command {
Required: true,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.RebootNodeRequest)
Expand Down Expand Up @@ -1415,7 +1415,7 @@ func k8sVersionList() *core.Command {
Verb: "list",
ArgsType: reflect.TypeOf(k8s.ListVersionsRequest{}),
ArgSpecs: core.ArgSpecs{
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListVersionsRequest)
Expand Down Expand Up @@ -1469,7 +1469,7 @@ func k8sVersionGet() *core.Command {
Required: true,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.GetVersionRequest)
Expand Down

0 comments on commit b97ae11

Please sign in to comment.