docs: add system routes description (#901)

* docs: add system routes description

---------

Signed-off-by: Mauritz Uphoff <mauritz.uphoff@stackit.cloud>
This commit is contained in:
Mauritz Uphoff 2025-07-07 13:35:57 +02:00 committed by GitHub
parent d9dc1d4495
commit 06f985227c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 7 deletions

View file

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

View file

@ -50,5 +50,5 @@ Read-Only:
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
- `name` (String) The name of the routing table.
- `routing_table_id` (String) The routing tables ID.
- `system_routes` (Boolean)
- `system_routes` (Boolean) This controls whether the routes for project-to-project communication are created automatically or not.
- `updated_at` (String) Date-time when the routing table was updated

View file

@ -40,7 +40,7 @@ resource "stackit_routing_table" "example" {
- `description` (String) Description of the routing table.
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
- `region` (String) The resource region. If not defined, the provider region is used.
- `system_routes` (Boolean)
- `system_routes` (Boolean) This controls whether the routes for project-to-project communication are created automatically or not.
### Read-Only

View file

@ -205,7 +205,8 @@ func RoutingTableResponseAttributes() map[string]schema.Attribute {
Computed: true,
},
"system_routes": schema.BoolAttribute{
Computed: true,
Description: "This controls whether the routes for project-to-project communication are created automatically or not.",
Computed: true,
},
"created_at": schema.StringAttribute{
Description: "Date-time when the routing table was created",

View file

@ -168,9 +168,10 @@ func (r *routingTableResource) Schema(_ context.Context, _ resource.SchemaReques
},
},
"system_routes": schema.BoolAttribute{
Optional: true,
Computed: true,
Default: booldefault.StaticBool(true),
Description: "This controls whether the routes for project-to-project communication are created automatically or not.",
Optional: true,
Computed: true,
Default: booldefault.StaticBool(true),
PlanModifiers: []planmodifier.Bool{
boolplanmodifier.RequiresReplace(),
},