File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -635,6 +635,13 @@ variable "tke_cidr_c" {
635
635
}
636
636
`
637
637
638
+ const TkeDefaultNodeInstanceVar = `
639
+ variable "ins_type" {
640
+ default = "S5.MEDIUM4"
641
+ }
642
+ `
643
+
644
+ // @deprecated. Avoid using this because it may return diff results
638
645
const TkeInstanceType = `
639
646
data "tencentcloud_instance_types" "ins_type" {
640
647
availability_zone = "` + defaultCvmAZone + `"
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ func TestAccTencentCloudTkeClusterEndpoint(t *testing.T) {
54
54
})
55
55
}
56
56
57
- const testAccTkeClusterEndpointBasicDeps = TkeCIDRs + TkeDataSource + ClusterAttachmentInstanceType + defaultImages + defaultSecurityGroupData + `
57
+ const testAccTkeClusterEndpointBasicDeps = TkeCIDRs + TkeDataSource + TkeDefaultNodeInstanceVar + defaultImages + defaultSecurityGroupData + `
58
58
variable "availability_zone" {
59
59
default = "ap-guangzhou-3"
60
60
}
@@ -102,7 +102,7 @@ resource "tencentcloud_kubernetes_node_pool" "np_test" {
102
102
termination_policies = ["OLDEST_INSTANCE"]
103
103
104
104
auto_scaling_config {
105
- instance_type = local.type1
105
+ instance_type = var.ins_type
106
106
system_disk_type = "CLOUD_PREMIUM"
107
107
system_disk_size = "50"
108
108
security_group_ids = [local.sg_id]
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ func testAccCheckTkeNodePoolExists(s *terraform.State) error {
202
202
203
203
}
204
204
205
- const testAccTkeNodePoolClusterBasic = TkeDataSource + TkeInstanceType + `
205
+ const testAccTkeNodePoolClusterBasic = TkeDataSource + TkeDefaultNodeInstanceVar + `
206
206
variable "availability_zone" {
207
207
default = "ap-guangzhou-3"
208
208
}
@@ -234,7 +234,7 @@ resource "tencentcloud_kubernetes_node_pool" "np_test" {
234
234
scaling_group_project_id = "` + defaultProjectId + `"
235
235
236
236
auto_scaling_config {
237
- instance_type = local.final_type
237
+ instance_type = var.ins_type
238
238
system_disk_type = "CLOUD_PREMIUM"
239
239
system_disk_size = "50"
240
240
security_group_ids = [data.tencentcloud_security_groups.sg.security_groups[0].security_group_id]
@@ -294,7 +294,7 @@ resource "tencentcloud_kubernetes_node_pool" "np_test" {
294
294
multi_zone_subnet_policy = "EQUALITY"
295
295
296
296
auto_scaling_config {
297
- instance_type = local.final_type
297
+ instance_type = var.ins_type
298
298
system_disk_type = "CLOUD_PREMIUM"
299
299
system_disk_size = "100"
300
300
security_group_ids = [data.tencentcloud_security_groups.sg.security_groups[0].security_group_id]
You can’t perform that action at this time.
0 commit comments