@@ -170,6 +170,7 @@ func ResourceTencentCloudKubernetesClusterAttachment() *schema.Resource {
170
170
Optional : true ,
171
171
ForceNew : true ,
172
172
Default : true ,
173
+ Deprecated : "This argument was deprecated, use `unschedulable` instead." ,
173
174
Description : "Indicate to schedule the adding node or not. Default is true." ,
174
175
},
175
176
"desired_pod_num" : {
@@ -234,13 +235,15 @@ func ResourceTencentCloudKubernetesClusterAttachment() *schema.Resource {
234
235
Type : schema .TypeString ,
235
236
Optional : true ,
236
237
ForceNew : true ,
238
+ Deprecated : "This argument was no longer supported by TencentCloud TKE." ,
237
239
Description : "Mount target. Default is not mounting." ,
238
240
},
239
241
"docker_graph_path" : {
240
242
Type : schema .TypeString ,
241
243
Optional : true ,
242
244
ForceNew : true ,
243
245
Default : "/var/lib/docker" ,
246
+ Deprecated : "This argument was no longer supported by TencentCloud TKE." ,
244
247
Description : "Docker graph path. Default is `/var/lib/docker`." ,
245
248
},
246
249
"data_disk" : {
@@ -300,6 +303,7 @@ func ResourceTencentCloudKubernetesClusterAttachment() *schema.Resource {
300
303
Type : schema .TypeList ,
301
304
Optional : true ,
302
305
ForceNew : true ,
306
+ Deprecated : "This argument was no longer supported by TencentCloud TKE." ,
303
307
Description : "Custom parameter information related to the node. This is a white-list parameter." ,
304
308
Elem : & schema.Schema {
305
309
Type : schema .TypeString ,
@@ -309,19 +313,22 @@ func ResourceTencentCloudKubernetesClusterAttachment() *schema.Resource {
309
313
Type : schema .TypeString ,
310
314
Optional : true ,
311
315
ForceNew : true ,
316
+ Deprecated : "This argument was no longer supported by TencentCloud TKE." ,
312
317
Description : "Base64-encoded User Data text, the length limit is 16KB." ,
313
318
},
314
319
"pre_start_user_script" : {
315
320
Type : schema .TypeString ,
316
321
Optional : true ,
317
322
ForceNew : true ,
323
+ Deprecated : "This argument was no longer supported by TencentCloud TKE." ,
318
324
Description : "Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes." ,
319
325
},
320
326
"is_schedule" : {
321
327
Type : schema .TypeBool ,
322
328
Optional : true ,
323
329
ForceNew : true ,
324
330
Default : true ,
331
+ Deprecated : "This argument was deprecated, use `unschedulable` instead." ,
325
332
Description : "Indicate to schedule the adding node or not. Default is true." ,
326
333
},
327
334
"desired_pod_num" : {
@@ -386,7 +393,7 @@ func ResourceTencentCloudKubernetesClusterAttachment() *schema.Resource {
386
393
Optional : true ,
387
394
ForceNew : true ,
388
395
Default : 0 ,
389
- Description : "Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling." ,
396
+ Description : "Sets whether the joining node participates in the schedule. Default is `0`, which means it participates in scheduling. Non-zero(eg: `1`) number means it does not participate in scheduling." ,
390
397
},
391
398
392
399
"security_groups" : {
@@ -496,9 +503,6 @@ func resourceTencentCloudKubernetesClusterAttachmentCreate(d *schema.ResourceDat
496
503
}
497
504
instanceAdvancedSettings .GPUArgs = & gPUArgs
498
505
}
499
- if v , ok := d .GetOkExists ("unschedulable" ); ok {
500
- instanceAdvancedSettings .Unschedulable = helper .IntInt64 (v .(int ))
501
- }
502
506
request .InstanceAdvancedSettings = & instanceAdvancedSettings
503
507
}
504
508
@@ -557,9 +561,6 @@ func resourceTencentCloudKubernetesClusterAttachmentCreate(d *schema.ResourceDat
557
561
}
558
562
instanceAdvancedSettings .GPUArgs = & gPUArgs2
559
563
}
560
- if v , ok := d .GetOkExists ("unschedulable" ); ok {
561
- instanceAdvancedSettings .Unschedulable = helper .IntInt64 (v .(int ))
562
- }
563
564
request .InstanceAdvancedSettingsOverrides = append (request .InstanceAdvancedSettingsOverrides , & instanceAdvancedSettings )
564
565
}
565
566
}
0 commit comments