Skip to content

Commit e5fdb59

Browse files
authored
feat: stabilize drift for ske egress range (#971)
* feat: stabilize drift for ske egress range * feat: add PlanModifiers to pod_address_ranges too
1 parent 4a7106c commit e5fdb59

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,17 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
372372
Description: "The outgoing network ranges (in CIDR notation) of traffic originating from workload on the cluster.",
373373
Computed: true,
374374
ElementType: types.StringType,
375+
PlanModifiers: []planmodifier.List{
376+
listplanmodifier.UseStateForUnknown(),
377+
},
375378
},
376379
"pod_address_ranges": schema.ListAttribute{
377380
Description: "The network ranges (in CIDR notation) used by pods of the cluster.",
378381
Computed: true,
379382
ElementType: types.StringType,
383+
PlanModifiers: []planmodifier.List{
384+
listplanmodifier.UseStateForUnknown(),
385+
},
380386
},
381387
"node_pools": schema.ListNestedAttribute{
382388
Description: "One or more `node_pool` block as defined below.",

0 commit comments

Comments
 (0)