From c7c56016224299537ca01c3a164068e2fdcf7c99 Mon Sep 17 00:00:00 2001 From: Alexander Dahmen Date: Mon, 20 Jul 2026 13:27:14 +0200 Subject: [PATCH] bugfix(public_ip): Add UseStateForUnkown() in order to prevent recreation when a label is added Signed-off-by: Alexander Dahmen --- stackit/internal/services/iaas/publicip/resource.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stackit/internal/services/iaas/publicip/resource.go b/stackit/internal/services/iaas/publicip/resource.go index 507a182f8..5a8e40858 100644 --- a/stackit/internal/services/iaas/publicip/resource.go +++ b/stackit/internal/services/iaas/publicip/resource.go @@ -165,6 +165,9 @@ func (r *publicIpResource) Schema(_ context.Context, _ resource.SchemaRequest, r Description: "Associates the public IP with a network interface or a virtual IP (ID). If you are using this resource with a Kubernetes Load Balancer or any other resource which associates a network interface implicitly, use the lifecycle `ignore_changes` property in this field to prevent unintentional removal of the network interface due to drift in the Terraform state", Optional: true, Computed: true, + PlanModifiers: []planmodifier.String{ + stringplanmodifier.UseStateForUnknown(), + }, Validators: []validator.String{ validate.UUID(), validate.NoSeparator(),