From 06f985227c5f67bf442d49f2213c3dacf9566a4c Mon Sep 17 00:00:00 2001 From: Mauritz Uphoff <39736813+h3adex@users.noreply.github.com> Date: Mon, 7 Jul 2025 13:35:57 +0200 Subject: [PATCH] docs: add system routes description (#901) * docs: add system routes description --------- Signed-off-by: Mauritz Uphoff --- docs/data-sources/routing_table.md | 2 +- docs/data-sources/routing_tables.md | 2 +- docs/resources/routing_table.md | 2 +- .../services/iaasalpha/routingtable/shared/shared.go | 3 ++- .../services/iaasalpha/routingtable/table/resource.go | 7 ++++--- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/data-sources/routing_table.md b/docs/data-sources/routing_table.md index 748431d9..68044569 100644 --- a/docs/data-sources/routing_table.md +++ b/docs/data-sources/routing_table.md @@ -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 diff --git a/docs/data-sources/routing_tables.md b/docs/data-sources/routing_tables.md index 787a3261..26eac9c3 100644 --- a/docs/data-sources/routing_tables.md +++ b/docs/data-sources/routing_tables.md @@ -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 diff --git a/docs/resources/routing_table.md b/docs/resources/routing_table.md index bd6c7e72..54e81c49 100644 --- a/docs/resources/routing_table.md +++ b/docs/resources/routing_table.md @@ -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 diff --git a/stackit/internal/services/iaasalpha/routingtable/shared/shared.go b/stackit/internal/services/iaasalpha/routingtable/shared/shared.go index ee212e86..6353a3a2 100644 --- a/stackit/internal/services/iaasalpha/routingtable/shared/shared.go +++ b/stackit/internal/services/iaasalpha/routingtable/shared/shared.go @@ -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", diff --git a/stackit/internal/services/iaasalpha/routingtable/table/resource.go b/stackit/internal/services/iaasalpha/routingtable/table/resource.go index c83c4e1d..b1a5761d 100644 --- a/stackit/internal/services/iaasalpha/routingtable/table/resource.go +++ b/stackit/internal/services/iaasalpha/routingtable/table/resource.go @@ -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(), },