Skip to content

TkeCvmCreateInfo.data_disk.disk_type support CLOUD_HSSD and CLOUD_TSSD #640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
## 1.56.13 (Unreleased)
## 1.56.14 (Unreleased)

## 1.56.13 (July 02, 2021)

BUG FIXES

* Resource `TkeCvmCreateInfo.data_disk.disk_type` support CLOUD_HSSD and CLOUD_TSSD

## 1.56.12 (July 02, 2021)

Expand Down
4 changes: 4 additions & 0 deletions tencentcloud/extension_as.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ const (
SYSTEM_DISK_TYPE_CLOUD_BASIC = "CLOUD_BASIC"
SYSTEM_DISK_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM"
SYSTEM_DISK_TYPE_CLOUD_SSD = "CLOUD_SSD"
SYSTEM_DISK_TYPE_CLOUD_HSSD = "CLOUD_HSSD"
SYSTEM_DISK_TYPE_CLOUD_TSSD = "CLOUD_TSSD"
)

var SYSTEM_DISK_ALLOW_TYPE = []string{
SYSTEM_DISK_TYPE_CLOUD_PREMIUM,
SYSTEM_DISK_TYPE_CLOUD_SSD,
SYSTEM_DISK_TYPE_CLOUD_HSSD,
SYSTEM_DISK_TYPE_CLOUD_TSSD,
}

const (
Expand Down
4 changes: 2 additions & 2 deletions tencentcloud/resource_tc_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ func TkeCvmCreateInfo() map[string]*schema.Schema {
ForceNew: true,
Optional: true,
Default: SYSTEM_DISK_TYPE_CLOUD_PREMIUM,
//ValidateFunc: validateAllowedStringValue(SYSTEM_DISK_ALLOW_TYPE),
Description: "Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD`.",
ValidateFunc: validateAllowedStringValue(SYSTEM_DISK_ALLOW_TYPE),
Description: "Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD` and `CLOUD_TSSD`.",
},
"disk_size": {
Type: schema.TypeInt,
Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_kubernetes_scale_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func resourceTencentCloudTkeScaleWorker() *schema.Resource {
Optional: true,
Default: SYSTEM_DISK_TYPE_CLOUD_PREMIUM,
ValidateFunc: validateAllowedStringValue(SYSTEM_DISK_ALLOW_TYPE),
Description: "Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD`.",
Description: "Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD` and `CLOUD_HSSD` and `CLOUD_TSSD`.",
},
"disk_size": {
Type: schema.TypeInt,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/kubernetes_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ The `cluster_extra_args` object supports the following:
The `data_disk` object supports the following:

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

The `exist_instance` object supports the following:
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/kubernetes_scale_worker.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ The `data_disk` object supports the following:

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

The `data_disk` object supports the following:

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

The `worker_config` object supports the following:
Expand Down