Skip to content

Commit 199427e

Browse files
authored
fix(tke): [128387519] tencentcloud_kubernetes_cluster optimiz create code logic (#3598)
* add * add
1 parent 056cd90 commit 199427e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.changelog/3598.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_kubernetes_cluster: optimiz create code logic.
3+
```

tencentcloud/services/tke/resource_tc_kubernetes_cluster_extension.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ func resourceTencentCloudKubernetesClusterCreatePostFillRequest0(ctx context.Con
6363
}
6464

6565
_, workerConfigOk := d.GetOk("worker_config")
66-
if !workerConfigOk && (clusterInternet || clusterIntranet) {
67-
return fmt.Errorf("when creating a cluster, if `cluster_internet` or `cluster_intranet` is true, " +
68-
"you need to configure the `worker_config` field to ensure that there are available nodes in the cluster")
66+
if !workerConfigOk && clusterInternet {
67+
return fmt.Errorf("when creating a cluster, if `cluster_internet` is true, you need to configure the `worker_config` field to ensure that there are available nodes in the cluster.")
6968
}
7069

7170
vpcId := d.Get("vpc_id").(string)

0 commit comments

Comments
 (0)