Skip to content

Commit 282fed7

Browse files
committed
add
1 parent 6ad5a3a commit 282fed7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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)