Skip to content

Commit

Permalink
Merge pull request #122 from volcengine/feat/ebm_ht
Browse files Browse the repository at this point in the history
Feat/ebm ht
  • Loading branch information
xuyaming0800 authored Aug 29, 2023
2 parents 9990778 + 7cc4f71 commit cb17815
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common/common_volcengine_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package common

const (
TerraformProviderName = "terraform-provider-volcengine"
TerraformProviderVersion = "0.0.103"
TerraformProviderVersion = "0.0.104"
)
17 changes: 15 additions & 2 deletions volcengine/ecs/ecs_instance/resource_volcengine_ecs_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,27 @@ func ResourceVolcengineEcsInstance() *schema.Resource {
Computed: true,
MaxItems: 1,
MinItems: 1,
Description: "The option of cpu.",
Description: "The option of cpu,only support for ebm.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"threads_per_core": {
Type: schema.TypeInt,
Required: true,
ForceNew: true,
Description: "The per core of threads.",
Description: "The per core of threads,only support for ebm.",
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
//暂时增加这个逻辑 在不包含ebm的情况下 忽略掉这个变化 目前这个方式比较hack 后续接口能力完善后改变一下
if it, ok := d.Get("instance_type").(string); ok {
its := strings.Split(it, ".")
if len(its) == 3 && !strings.Contains(strings.ToLower(its[1]), "ebm") {
return true
} else {
return false
}
} else {
return true
}
},
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/tos_objects.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following arguments are supported:
## Attributes Reference
In addition to all arguments above, the following attributes are exported:
* `objects` - The collection of TOS Object query.
* `content` - The content the TOS Object when content type is json or text.
* `content` - The content the TOS Object when content type is json or text and xml.
* `name` - The name the TOS Object.
* `size` - The name the TOS Object size.
* `storage_class` - The name the TOS Object storage class.
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/ecs_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The following arguments are supported:
* `system_volume_type` - (Required, ForceNew) The type of system volume, the value is `PTSSD` or `ESSD_PL0` or `ESSD_PL1` or `ESSD_PL2` or `ESSD_FlexPL`.
* `auto_renew_period` - (Optional) The auto renew period of ECS instance.Only effective when instance_charge_type is PrePaid. Default is 1.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
* `auto_renew` - (Optional) The auto renew flag of ECS instance.Only effective when instance_charge_type is PrePaid. Default is true.When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
* `cpu_options` - (Optional) The option of cpu.
* `cpu_options` - (Optional) The option of cpu,only support for ebm.
* `data_volumes` - (Optional) The data volumes collection of ECS instance.
* `deployment_set_id` - (Optional) The ID of Ecs Deployment Set.
* `description` - (Optional) The description of ECS instance.
Expand Down Expand Up @@ -110,7 +110,7 @@ The following arguments are supported:

The `cpu_options` object supports the following:

* `threads_per_core` - (Required, ForceNew) The per core of threads.
* `threads_per_core` - (Required, ForceNew) The per core of threads,only support for ebm.

The `data_volumes` object supports the following:

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/tos_object.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The `account_acl` object supports the following:
## Attributes Reference
In addition to all arguments above, the following attributes are exported:
* `id` - ID of the resource.
* `content` - The content the TOS Object when content type is json or text.
* `content` - The content the TOS Object when content type is json or text and xml.
* `enable_version` - The flag of enable tos version.
* `version_ids` - The version ids of the object if exist.

Expand Down
39 changes: 39 additions & 0 deletions website/volcengine.erb
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,45 @@
</li>
</ul>
</li>
<li>
<a href="#">CLOUDFS</a>
<ul class="nav">
<li>
<a href="#">Data Sources</a>
<ul class="nav nav-auto-expand">
<li>
<a href="/docs/providers/volcengine/d/cloudfs_accesses.html">cloudfs_accesses</a>
</li>
<li>
<a href="/docs/providers/volcengine/d/cloudfs_file_systems.html">cloudfs_file_systems</a>
</li>
<li>
<a href="/docs/providers/volcengine/d/cloudfs_namespaces.html">cloudfs_namespaces</a>
</li>
<li>
<a href="/docs/providers/volcengine/d/cloudfs_ns_quotas.html">cloudfs_ns_quotas</a>
</li>
<li>
<a href="/docs/providers/volcengine/d/cloudfs_quotas.html">cloudfs_quotas</a>
</li>
</ul>
</li>
<li>
<a href="#">Resources</a>
<ul class="nav nav-auto-expand">
<li>
<a href="/docs/providers/volcengine/r/cloudfs_access.html">cloudfs_access</a>
</li>
<li>
<a href="/docs/providers/volcengine/r/cloudfs_file_system.html">cloudfs_file_system</a>
</li>
<li>
<a href="/docs/providers/volcengine/r/cloudfs_namespace.html">cloudfs_namespace</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">CR</a>
<ul class="nav">
Expand Down

0 comments on commit cb17815

Please sign in to comment.