Skip to content

Commit 06f9852

Browse files
authored
docs: add system routes description (#901)
* docs: add system routes description --------- Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
1 parent d9dc1d4 commit 06f9852

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

docs/data-sources/routing_table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ data "stackit_routing_table" "example" {
4444
- `id` (String) Terraform's internal datasource ID. It is structured as "`organization_id`,`region`,`network_area_id`,`routing_table_id`".
4545
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
4646
- `name` (String) The name of the routing table.
47-
- `system_routes` (Boolean)
47+
- `system_routes` (Boolean) This controls whether the routes for project-to-project communication are created automatically or not.
4848
- `updated_at` (String) Date-time when the routing table was updated

docs/data-sources/routing_tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ Read-Only:
5050
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
5151
- `name` (String) The name of the routing table.
5252
- `routing_table_id` (String) The routing tables ID.
53-
- `system_routes` (Boolean)
53+
- `system_routes` (Boolean) This controls whether the routes for project-to-project communication are created automatically or not.
5454
- `updated_at` (String) Date-time when the routing table was updated

docs/resources/routing_table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ resource "stackit_routing_table" "example" {
4040
- `description` (String) Description of the routing table.
4141
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
4242
- `region` (String) The resource region. If not defined, the provider region is used.
43-
- `system_routes` (Boolean)
43+
- `system_routes` (Boolean) This controls whether the routes for project-to-project communication are created automatically or not.
4444

4545
### Read-Only
4646

stackit/internal/services/iaasalpha/routingtable/shared/shared.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ func RoutingTableResponseAttributes() map[string]schema.Attribute {
205205
Computed: true,
206206
},
207207
"system_routes": schema.BoolAttribute{
208-
Computed: true,
208+
Description: "This controls whether the routes for project-to-project communication are created automatically or not.",
209+
Computed: true,
209210
},
210211
"created_at": schema.StringAttribute{
211212
Description: "Date-time when the routing table was created",

stackit/internal/services/iaasalpha/routingtable/table/resource.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,10 @@ func (r *routingTableResource) Schema(_ context.Context, _ resource.SchemaReques
168168
},
169169
},
170170
"system_routes": schema.BoolAttribute{
171-
Optional: true,
172-
Computed: true,
173-
Default: booldefault.StaticBool(true),
171+
Description: "This controls whether the routes for project-to-project communication are created automatically or not.",
172+
Optional: true,
173+
Computed: true,
174+
Default: booldefault.StaticBool(true),
174175
PlanModifiers: []planmodifier.Bool{
175176
boolplanmodifier.RequiresReplace(),
176177
},

0 commit comments

Comments
 (0)