Skip to content

Commit 31aded1

Browse files
committed
feat(routing-table): provide rt and routes functionality
1 parent 9896dba commit 31aded1

20 files changed

Lines changed: 1196 additions & 0 deletions

docs/stackit_beta.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ stackit beta [flags]
4242

4343
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
4444
* [stackit beta alb](./stackit_beta_alb.md) - Manages application loadbalancers
45+
* [stackit beta routing-table](./stackit_beta_routing-table.md) - Manage routing-tables and its according routes
4546
* [stackit beta sqlserverflex](./stackit_beta_sqlserverflex.md) - Provides functionality for SQLServer Flex
4647

docs/stackit_beta_routing-table.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## stackit beta routing-table
2+
3+
Manage routing-tables and its according routes
4+
5+
### Synopsis
6+
7+
Manage routing-tables and its according routes
8+
9+
```
10+
stackit beta routing-table [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta routing-table"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
33+
* [stackit beta routing-table describe](./stackit_beta_routing-table_describe.md) - Describe a routing-table
34+
* [stackit beta routing-table list](./stackit_beta_routing-table_list.md) - List all routing-tables
35+
* [stackit beta routing-table route](./stackit_beta_routing-table_route.md) - Manage routes of a routing-table
36+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## stackit beta routing-table describe
2+
3+
Describe a routing-table
4+
5+
### Synopsis
6+
7+
Describe a routing-table
8+
9+
```
10+
stackit beta routing-table describe ROUTING_TABLE_ID_ARG [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Describe a routing-table
17+
$ stackit beta routing-table describe xxxx-xxxx-xxxx-xxxx
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta routing-table describe"
24+
--network-area-id string Network-Area ID
25+
--organization-id string Organization ID
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
-y, --assume-yes If set, skips all confirmation prompts
32+
--async If set, runs the command asynchronously
33+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
34+
-p, --project-id string Project ID
35+
--region string Target region for region-specific requests
36+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
37+
```
38+
39+
### SEE ALSO
40+
41+
* [stackit beta routing-table](./stackit_beta_routing-table.md) - Manage routing-tables and its according routes
42+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## stackit beta routing-table list
2+
3+
List all routing-tables
4+
5+
### Synopsis
6+
7+
List all routing-tables
8+
9+
```
10+
stackit beta routing-table list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List all routing-tables
17+
$ stackit beta routing-table list
18+
19+
List all routing-tables with labels
20+
$ stackit beta routing-table list --label-selector env=dev,env=rc
21+
22+
List all routing-tables with labels and limit to 10
23+
$ stackit beta routing-table list --label-selector env=dev,env=rc --limit 10
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit beta routing-table list"
30+
--label-selector string Filter by label
31+
--limit int Maximum number of entries to list
32+
--network-area-id string Network-Area ID
33+
--organization-id string Organization ID
34+
```
35+
36+
### Options inherited from parent commands
37+
38+
```
39+
-y, --assume-yes If set, skips all confirmation prompts
40+
--async If set, runs the command asynchronously
41+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
42+
-p, --project-id string Project ID
43+
--region string Target region for region-specific requests
44+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
45+
```
46+
47+
### SEE ALSO
48+
49+
* [stackit beta routing-table](./stackit_beta_routing-table.md) - Manage routing-tables and its according routes
50+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## stackit beta routing-table route
2+
3+
Manage routes of a routing-table
4+
5+
### Synopsis
6+
7+
Manage routes of a routing-table
8+
9+
```
10+
stackit beta routing-table route [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta routing-table route"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit beta routing-table](./stackit_beta_routing-table.md) - Manage routing-tables and its according routes
33+
* [stackit beta routing-table route describe](./stackit_beta_routing-table_route_describe.md) - Describe a route within a routing-table
34+
* [stackit beta routing-table route list](./stackit_beta_routing-table_route_list.md) - list all routes within a routing-table
35+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## stackit beta routing-table route describe
2+
3+
Describe a route within a routing-table
4+
5+
### Synopsis
6+
7+
Describe a route within a routing-table
8+
9+
```
10+
stackit beta routing-table route describe ROUTE_ID_ARG [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Describe a route within a routing-table
17+
$ stackit beta routing-table route describe xxxx-xxxx-xxxx-xxxx
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta routing-table route describe"
24+
--network-area-id string Network-Area ID
25+
--organization-id string Organization ID
26+
--routing-table-id string Routing-Table ID
27+
```
28+
29+
### Options inherited from parent commands
30+
31+
```
32+
-y, --assume-yes If set, skips all confirmation prompts
33+
--async If set, runs the command asynchronously
34+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
35+
-p, --project-id string Project ID
36+
--region string Target region for region-specific requests
37+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
38+
```
39+
40+
### SEE ALSO
41+
42+
* [stackit beta routing-table route](./stackit_beta_routing-table_route.md) - Manage routes of a routing-table
43+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## stackit beta routing-table route list
2+
3+
list all routes within a routing-table
4+
5+
### Synopsis
6+
7+
list all routes within a routing-table
8+
9+
```
10+
stackit beta routing-table route list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
List all routes within a routing-table
17+
$ stackit beta routing-table route list
18+
19+
List all routes within a routing-table with labels
20+
$ stackit beta routing-table list --label-selector env=dev,env=rc
21+
22+
List all routes within a routing-tables with labels and limit to 10
23+
$ stackit beta routing-table list --label-selector env=dev,env=rc --limit 10
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit beta routing-table route list"
30+
--label-selector string Filter by label
31+
--limit int Maximum number of entries to list
32+
--network-area-id string Network-Area ID
33+
--organization-id string Organization ID
34+
--routing-table-id string Routing-Table ID
35+
```
36+
37+
### Options inherited from parent commands
38+
39+
```
40+
-y, --assume-yes If set, skips all confirmation prompts
41+
--async If set, runs the command asynchronously
42+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
43+
-p, --project-id string Project ID
44+
--region string Target region for region-specific requests
45+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
46+
```
47+
48+
### SEE ALSO
49+
50+
* [stackit beta routing-table route](./stackit_beta_routing-table_route.md) - Manage routes of a routing-table
51+

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ require (
2121
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.1
2222
github.com/stackitcloud/stackit-sdk-go/services/git v0.7.1
2323
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.30.0
24+
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.21-alpha
2425
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.2
2526
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.1
2627
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.2.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,8 @@ github.com/stackitcloud/stackit-sdk-go/services/git v0.7.1 h1:hkFixFnBcQzU4BSIZF
573573
github.com/stackitcloud/stackit-sdk-go/services/git v0.7.1/go.mod h1:Ng1EzrRndG3iGXGH90AZJz//wfK+2YOyDwTnTLwX3a4=
574574
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.30.0 h1:01+noyCSadNH3ALHufcVXxNs0hBsetzJkOMN1Fe0VLc=
575575
github.com/stackitcloud/stackit-sdk-go/services/iaas v0.30.0/go.mod h1:854gnLR92NvAbJAA1xZEumrtNh1DoBP1FXTMvhwYA6w=
576+
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.21-alpha h1:m1jq6a8dbUe+suFuUNdHmM/cSehpGLUtDbK1CqLqydg=
577+
github.com/stackitcloud/stackit-sdk-go/services/iaasalpha v0.1.21-alpha/go.mod h1:Nu1b5Phsv8plgZ51+fkxPVsU91ZJ5Ayz+cthilxdmQ8=
576578
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.5.1 h1:OdJEs8eOfrzn9tCBDLxIyP8hX50zPfcXNYnRoQX+chs=
577579
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.5.1/go.mod h1:11uzaOPCF9SeDHXEGOPMlHDD3J5r2TnvCGUwW9Igq9c=
578580
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.1 h1:hv5WrRU9rN6Jx4OwdOGJRyaQrfA9p1tzEoQK6/CDyoA=

internal/cmd/beta/beta.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55

66
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/alb"
7+
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/routingtable"
78
"github.com/stackitcloud/stackit-cli/internal/cmd/beta/sqlserverflex"
89
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
910
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
@@ -38,4 +39,5 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
3839
func addSubcommands(cmd *cobra.Command, params *params.CmdParams) {
3940
cmd.AddCommand(sqlserverflex.NewCmd(params))
4041
cmd.AddCommand(alb.NewCmd(params))
42+
cmd.AddCommand(routingtable.NewCmd(params))
4143
}

0 commit comments

Comments
 (0)