Skip to content

Commit aa5db75

Browse files
authored
fix: zones must be computed to allow api feedback (#739)
1 parent 727d67a commit aa5db75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stackit/internal/services/ske/cluster/resource.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
2020
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default"
2121
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier"
22+
"github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier"
2223
"github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier"
2324
"github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier"
2425
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
@@ -672,7 +673,11 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
672673
"zones": schema.ListAttribute{
673674
Description: "Specify a list of domain filters for externalDNS (e.g., `foo.runs.onstackit.cloud`)",
674675
Optional: true,
676+
Computed: true,
675677
ElementType: types.StringType,
678+
PlanModifiers: []planmodifier.List{
679+
listplanmodifier.UseStateForUnknown(),
680+
},
676681
},
677682
},
678683
},

0 commit comments

Comments
 (0)