Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(k8s): add waw as available region #1675

Merged
merged 2 commits into from
Jan 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ARGS:
[open-id-connect-config.groups-prefix] Prefix prepended to group claims
[open-id-connect-config.required-claim.{index}] Multiple key=value pairs that describes a required claim in the ID Token
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for list-available-versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for reset-admin-token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ARGS:
[open-id-connect-config.groups-claim.{index}] JWT claim to use as the user's group
[open-id-connect-config.groups-prefix] Prefix prepended to group claims
[open-id-connect-config.required-claim.{index}] Multiple key=value pairs that describes a required claim in the ID Token
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for upgrade
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

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 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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for reboot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

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

FLAGS:
-h, --help help for create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

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

FLAGS:
-h, --help help for update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for upgrade
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
-h, --help help for get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,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 | nl-ams)
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

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 @@ -151,7 +151,7 @@ func k8sClusterList() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListClustersRequest)
Expand Down Expand Up @@ -516,7 +516,7 @@ func k8sClusterCreate() *core.Command {
Positional: false,
},
core.OrganizationIDArgSpec(),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.CreateClusterRequest)
Expand Down Expand Up @@ -556,7 +556,7 @@ func k8sClusterGet() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.GetClusterRequest)
Expand Down Expand Up @@ -785,7 +785,7 @@ func k8sClusterUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.UpdateClusterRequest)
Expand Down Expand Up @@ -832,7 +832,7 @@ func k8sClusterDelete() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.DeleteClusterRequest)
Expand Down Expand Up @@ -882,7 +882,7 @@ func k8sClusterUpgrade() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.UpgradeClusterRequest)
Expand Down Expand Up @@ -922,7 +922,7 @@ func k8sClusterListAvailableVersions() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListClusterAvailableVersionsRequest)
Expand Down Expand Up @@ -972,7 +972,7 @@ func k8sClusterResetAdminToken() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ResetClusterAdminTokenRequest)
Expand Down Expand Up @@ -1037,7 +1037,7 @@ func k8sPoolList() *core.Command {
Positional: false,
EnumValues: []string{"unknown", "ready", "deleting", "deleted", "scaling", "warning", "locked", "upgrading"},
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListPoolsRequest)
Expand Down Expand Up @@ -1222,7 +1222,7 @@ func k8sPoolCreate() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.CreatePoolRequest)
Expand Down Expand Up @@ -1266,7 +1266,7 @@ func k8sPoolGet() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.GetPoolRequest)
Expand Down Expand Up @@ -1309,7 +1309,7 @@ func k8sPoolUpgrade() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.UpgradePoolRequest)
Expand Down Expand Up @@ -1393,7 +1393,7 @@ func k8sPoolUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.UpdatePoolRequest)
Expand Down Expand Up @@ -1437,7 +1437,7 @@ func k8sPoolDelete() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.DeletePoolRequest)
Expand Down Expand Up @@ -1503,7 +1503,7 @@ func k8sNodeList() *core.Command {
Positional: false,
EnumValues: []string{"unknown", "creating", "not_ready", "ready", "deleting", "deleted", "locked", "rebooting", "creation_error"},
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListNodesRequest)
Expand Down Expand Up @@ -1583,7 +1583,7 @@ func k8sNodeGet() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.GetNodeRequest)
Expand Down Expand Up @@ -1619,7 +1619,7 @@ func k8sNodeReplace() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ReplaceNodeRequest)
Expand Down Expand Up @@ -1655,7 +1655,7 @@ func k8sNodeReboot() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.RebootNodeRequest)
Expand Down Expand Up @@ -1684,7 +1684,7 @@ func k8sVersionList() *core.Command {
// Deprecated: false,
ArgsType: reflect.TypeOf(k8s.ListVersionsRequest{}),
ArgSpecs: core.ArgSpecs{
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.ListVersionsRequest)
Expand Down Expand Up @@ -1743,7 +1743,7 @@ func k8sVersionGet() *core.Command {
Deprecated: false,
Positional: true,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms),
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
request := args.(*k8s.GetVersionRequest)
Expand Down