Skip to content

Commit afddcb8

Browse files
committed
fix force replacement of unschedulable
1 parent 0fcdf26 commit afddcb8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tencentcloud/resource_tc_kubernetes_cluster.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,13 @@ func resourceTencentCloudTkeCluster() *schema.Resource {
911911
Type: schema.TypeInt,
912912
Optional: true,
913913
ForceNew: true,
914+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
915+
if new == "0" && old == ""{
916+
return true
917+
} else {
918+
return old == new
919+
}
920+
},
914921
Default: 0,
915922
Description: "Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.",
916923
},

0 commit comments

Comments
 (0)