Skip to content

Commit dee2cf0

Browse files
authored
Merge pull request #640 from rostachen/master
TkeCvmCreateInfo.data_disk.disk_type support CLOUD_HSSD and CLOUD_TSSD
2 parents 923a94b + 0f1eb64 commit dee2cf0

6 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## 1.56.13 (Unreleased)
1+
## 1.56.14 (Unreleased)
2+
3+
## 1.56.13 (July 02, 2021)
4+
5+
BUG FIXES
6+
7+
* Resource `TkeCvmCreateInfo.data_disk.disk_type` support CLOUD_HSSD and CLOUD_TSSD
28

39
## 1.56.12 (July 02, 2021)
410

tencentcloud/extension_as.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ const (
66
SYSTEM_DISK_TYPE_CLOUD_BASIC = "CLOUD_BASIC"
77
SYSTEM_DISK_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM"
88
SYSTEM_DISK_TYPE_CLOUD_SSD = "CLOUD_SSD"
9+
SYSTEM_DISK_TYPE_CLOUD_HSSD = "CLOUD_HSSD"
10+
SYSTEM_DISK_TYPE_CLOUD_TSSD = "CLOUD_TSSD"
911
)
1012

1113
var SYSTEM_DISK_ALLOW_TYPE = []string{
1214
SYSTEM_DISK_TYPE_CLOUD_PREMIUM,
1315
SYSTEM_DISK_TYPE_CLOUD_SSD,
16+
SYSTEM_DISK_TYPE_CLOUD_HSSD,
17+
SYSTEM_DISK_TYPE_CLOUD_TSSD,
1418
}
1519

1620
const (

tencentcloud/resource_tc_kubernetes_cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ func TkeCvmCreateInfo() map[string]*schema.Schema {
444444
ForceNew: true,
445445
Optional: true,
446446
Default: SYSTEM_DISK_TYPE_CLOUD_PREMIUM,
447-
//ValidateFunc: validateAllowedStringValue(SYSTEM_DISK_ALLOW_TYPE),
448-
Description: "Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD`.",
447+
ValidateFunc: validateAllowedStringValue(SYSTEM_DISK_ALLOW_TYPE),
448+
Description: "Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD` and `CLOUD_TSSD`.",
449449
},
450450
"disk_size": {
451451
Type: schema.TypeInt,

tencentcloud/resource_tc_kubernetes_scale_worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func resourceTencentCloudTkeScaleWorker() *schema.Resource {
194194
Optional: true,
195195
Default: SYSTEM_DISK_TYPE_CLOUD_PREMIUM,
196196
ValidateFunc: validateAllowedStringValue(SYSTEM_DISK_ALLOW_TYPE),
197-
Description: "Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD`.",
197+
Description: "Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD` and `CLOUD_TSSD`.",
198198
},
199199
"disk_size": {
200200
Type: schema.TypeInt,

website/docs/r/kubernetes_cluster.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ The `cluster_extra_args` object supports the following:
330330
The `data_disk` object supports the following:
331331

332332
* `disk_size` - (Optional, ForceNew) Volume of disk in GB. Default is `0`.
333-
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD`.
333+
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD` and `CLOUD_TSSD`.
334334
* `snapshot_id` - (Optional, ForceNew) Data disk snapshot ID.
335335

336336
The `exist_instance` object supports the following:

website/docs/r/kubernetes_scale_worker.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ The `data_disk` object supports the following:
128128

129129
* `auto_format_and_mount` - (Optional, ForceNew) Indicate whether to auto format and mount or not. Default is `false`.
130130
* `disk_size` - (Optional, ForceNew) Volume of disk in GB. Default is `0`.
131-
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD`.
131+
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD` and `CLOUD_TSSD`.
132132
* `file_system` - (Optional, ForceNew) File system, e.g. `ext3/ext4/xfs`.
133133
* `mount_target` - (Optional, ForceNew) Mount target.
134134

135135
The `data_disk` object supports the following:
136136

137137
* `disk_size` - (Optional, ForceNew) Volume of disk in GB. Default is `0`.
138-
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD`.
138+
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD` and `CLOUD_TSSD`.
139139
* `snapshot_id` - (Optional, ForceNew) Data disk snapshot ID.
140140

141141
The `worker_config` object supports the following:

0 commit comments

Comments
 (0)