Skip to content

Commit 8029c7c

Browse files
committed
feat(tke): delete taints and labels
1 parent 3b52115 commit 8029c7c

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

tencentcloud/services/tke/resource_tc_kubernetes_node_pool.go

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tencentcloud/services/tke/resource_tc_kubernetes_node_pool_extension.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,12 @@ func resourceTencentCloudKubernetesNodePoolUpdateOnExit(ctx context.Context) err
713713
clusterId := items[0]
714714
nodePoolId := items[1]
715715

716+
717+
err := resourceTencentCloudKubernetesNodePoolUpdateTaints(ctx, clusterId, nodePoolId)
718+
if err != nil {
719+
return err
720+
}
721+
716722
// ModifyScalingGroup
717723
if d.HasChange("scaling_group_name") ||
718724
d.HasChange("zones") ||
@@ -1250,18 +1256,11 @@ func desiredCapacityOutRange(d *schema.ResourceData) bool {
12501256
return capacity > maxSize || capacity < minSize
12511257
}
12521258

1253-
func resourceTencentCloudKubernetesNodePoolUpdatePostHandleResponse0(ctx context.Context, resp *tke.ModifyClusterNodePoolResponse) error {
1259+
func resourceTencentCloudKubernetesNodePoolUpdateTaints(ctx context.Context, clusterId string, nodePoolId string) error {
12541260
d := tccommon.ResourceDataFromContext(ctx)
12551261
meta := tccommon.ProviderMetaFromContext(ctx)
12561262
logId := tccommon.GetLogId(tccommon.ContextNil)
12571263

1258-
idSplit := strings.Split(d.Id(), tccommon.FILED_SP)
1259-
if len(idSplit) != 2 {
1260-
return fmt.Errorf("id is broken,%s", d.Id())
1261-
}
1262-
clusterId := idSplit[0]
1263-
nodePoolId := idSplit[1]
1264-
12651264
if d.HasChange("taints") {
12661265
_, n := d.GetChange("taints")
12671266

0 commit comments

Comments
 (0)