Skip to content

Commit ac3d50b

Browse files
authored
fix(ske): Prevent state drifts of node pools (#1212)
Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent e9686ed commit ac3d50b

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ import (
2121
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
2222
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
2323
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default"
24-
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier"
2524
"github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier"
26-
"github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier"
2725
"github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier"
2826
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
2927
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
@@ -424,17 +422,11 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
424422
Description: fmt.Sprintf("%s %s", descriptions["max_surge"], descriptions["nodepool_validators"]),
425423
Optional: true,
426424
Computed: true,
427-
PlanModifiers: []planmodifier.Int64{
428-
int64planmodifier.UseStateForUnknown(),
429-
},
430425
},
431426
"max_unavailable": schema.Int64Attribute{
432427
Description: fmt.Sprintf("%s %s", descriptions["max_unavailable"], descriptions["nodepool_validators"]),
433428
Optional: true,
434429
Computed: true,
435-
PlanModifiers: []planmodifier.Int64{
436-
int64planmodifier.UseStateForUnknown(),
437-
},
438430
},
439431
"os_name": schema.StringAttribute{
440432
Description: "The name of the OS image. Defaults to `flatcar`.",
@@ -478,9 +470,6 @@ func (r *clusterResource) Schema(_ context.Context, _ resource.SchemaRequest, re
478470
Optional: true,
479471
Computed: true,
480472
ElementType: types.StringType,
481-
PlanModifiers: []planmodifier.Map{
482-
mapplanmodifier.UseStateForUnknown(),
483-
},
484473
},
485474
"taints": schema.ListNestedAttribute{
486475
Description: "Specifies a taint list as defined below.",

0 commit comments

Comments
 (0)