Skip to content

Commit d99e050

Browse files
authored
Merge pull request #615 from gailwang/master
fix force replacement of unschedulable
2 parents 75bd405 + afddcb8 commit d99e050

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
@@ -982,6 +982,13 @@ func resourceTencentCloudTkeCluster() *schema.Resource {
982982
Type: schema.TypeInt,
983983
Optional: true,
984984
ForceNew: true,
985+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
986+
if new == "0" && old == ""{
987+
return true
988+
} else {
989+
return old == new
990+
}
991+
},
985992
Default: 0,
986993
Description: "Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.",
987994
},

0 commit comments

Comments
 (0)