Skip to content

Commit 95a486c

Browse files
authored
fix(k8s): diffsuppress locality on sg id (#3245)
1 parent 59f5bcf commit 95a486c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

internal/services/k8s/pool.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,12 @@ func ResourcePool() *schema.Resource {
250250
Description: "The status of the pool",
251251
},
252252
"security_group_id": {
253-
Type: schema.TypeString,
254-
Computed: true,
255-
Optional: true,
256-
ForceNew: true,
257-
Description: "The ID of the security group",
253+
Type: schema.TypeString,
254+
Computed: true,
255+
Optional: true,
256+
ForceNew: true,
257+
Description: "The ID of the security group",
258+
DiffSuppressFunc: dsf.Locality,
258259
},
259260
},
260261
}
@@ -433,7 +434,7 @@ func ResourceK8SPoolRead(ctx context.Context, d *schema.ResourceData, m any) dia
433434
_ = d.Set("zone", pool.Zone)
434435
_ = d.Set("upgrade_policy", poolUpgradePolicyFlatten(pool))
435436
_ = d.Set("public_ip_disabled", pool.PublicIPDisabled)
436-
_ = d.Set("security_group_id", locality.ExpandID(pool.SecurityGroupID))
437+
_ = d.Set("security_group_id", pool.SecurityGroupID)
437438

438439
if pool.PlacementGroupID != nil {
439440
_ = d.Set("placement_group_id", zonal.NewID(pool.Zone, *pool.PlacementGroupID).String())

0 commit comments

Comments
 (0)