From e0b2c098f2ae93a64562a837be668ac32c870ae2 Mon Sep 17 00:00:00 2001 From: Mauritz Uphoff <39736813+h3adex@users.noreply.github.com> Date: Thu, 16 Oct 2025 14:49:20 +0200 Subject: [PATCH] fix(docs): fix typos in IaaS routingtable docs (#1030) Signed-off-by: Mauritz Uphoff --- docs/data-sources/routing_table_route.md | 2 +- docs/data-sources/routing_table_routes.md | 2 +- docs/resources/routing_table_route.md | 2 +- .../internal/services/iaasalpha/routingtable/route/resource.go | 2 +- .../internal/services/iaasalpha/routingtable/shared/shared.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/data-sources/routing_table_route.md b/docs/data-sources/routing_table_route.md index a637284b..7344a87d 100644 --- a/docs/data-sources/routing_table_route.md +++ b/docs/data-sources/routing_table_route.md @@ -61,5 +61,5 @@ Read-Only: Read-Only: -- `type` (String) Possible values are: `blackhole`, `internet`, `ipv4`, `ipv6`. Only `cidrv4` is supported during experimental stage.. +- `type` (String) Type of the next hop. Possible values are: `blackhole`, `internet`, `ipv4`, `ipv6`. - `value` (String) Either IPv4 or IPv6 (not set for blackhole and internet). Only IPv4 supported during experimental stage. diff --git a/docs/data-sources/routing_table_routes.md b/docs/data-sources/routing_table_routes.md index 0d79e464..2215de81 100644 --- a/docs/data-sources/routing_table_routes.md +++ b/docs/data-sources/routing_table_routes.md @@ -67,5 +67,5 @@ Read-Only: Read-Only: -- `type` (String) Possible values are: `blackhole`, `internet`, `ipv4`, `ipv6`. Only `cidrv4` is supported during experimental stage.. +- `type` (String) Type of the next hop. Possible values are: `blackhole`, `internet`, `ipv4`, `ipv6`. - `value` (String) Either IPv4 or IPv6 (not set for blackhole and internet). Only IPv4 supported during experimental stage. diff --git a/docs/resources/routing_table_route.md b/docs/resources/routing_table_route.md index bf02c00b..4e9f11fb 100644 --- a/docs/resources/routing_table_route.md +++ b/docs/resources/routing_table_route.md @@ -77,7 +77,7 @@ Required: Required: -- `type` (String) Possible values are: `blackhole`, `internet`, `ipv4`, `ipv6`. Only `cidrv4` is supported during experimental stage.. +- `type` (String) Type of the next hop. Possible values are: `blackhole`, `internet`, `ipv4`, `ipv6`. Optional: diff --git a/stackit/internal/services/iaasalpha/routingtable/route/resource.go b/stackit/internal/services/iaasalpha/routingtable/route/resource.go index c5ba2a7e..a7fb1025 100644 --- a/stackit/internal/services/iaasalpha/routingtable/route/resource.go +++ b/stackit/internal/services/iaasalpha/routingtable/route/resource.go @@ -201,7 +201,7 @@ func (r *routeResource) Schema(_ context.Context, _ resource.SchemaRequest, resp Required: true, Attributes: map[string]schema.Attribute{ "type": schema.StringAttribute{ - Description: fmt.Sprintf("%s %s.", utils.FormatPossibleValues("blackhole", "internet", "ipv4", "ipv6"), "Only `cidrv4` is supported during experimental stage."), + Description: "Type of the next hop. " + utils.FormatPossibleValues("blackhole", "internet", "ipv4", "ipv6"), Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.RequiresReplace(), diff --git a/stackit/internal/services/iaasalpha/routingtable/shared/shared.go b/stackit/internal/services/iaasalpha/routingtable/shared/shared.go index 6353a3a2..04382ad3 100644 --- a/stackit/internal/services/iaasalpha/routingtable/shared/shared.go +++ b/stackit/internal/services/iaasalpha/routingtable/shared/shared.go @@ -156,7 +156,7 @@ func RouteResponseAttributes() map[string]schema.Attribute { Computed: true, Attributes: map[string]schema.Attribute{ "type": schema.StringAttribute{ - Description: fmt.Sprintf("%s %s.", utils.FormatPossibleValues("blackhole", "internet", "ipv4", "ipv6"), "Only `cidrv4` is supported during experimental stage."), + Description: "Type of the next hop. " + utils.FormatPossibleValues("blackhole", "internet", "ipv4", "ipv6"), Computed: true, }, "value": schema.StringAttribute{