Skip to content

Commit

Permalink
add default value of min_cpu_platform (#161)
Browse files Browse the repository at this point in the history
* add default value of min_cpu_platform
  • Loading branch information
wangrzneu authored Feb 26, 2024
1 parent a27ff96 commit a2bbcda
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions ucloud/resource_ucloud_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ func resourceUCloudInstance() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: "Intel/Auto",
},

"cpu_platform": {
Expand Down
1 change: 1 addition & 0 deletions ucloud/resource_ucloud_uk8s_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ func resourceUCloudUK8SCluster() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: "Intel/Auto",
ValidateFunc: validation.StringInSlice([]string{
"Intel/Auto",
"Intel/IvyBridge",
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ The following arguments are supported:

* `network_interface` - (Optional, ForceNew) Additional network interface eips to attach to the instance. `network_interface` configurations only apply on resource creation. The count of `network_interface` can only be one. See [network_interface](#network_interface) below for details on attributes. When set `network_interface`, the argument `delete_eips_with_instance` must bet set.
* `delete_eips_with_instance` - (Optional, ForceNew, Required when set `network_interface`) Whether the network interface eips associated instance should be destroyed on instance termination.
* `min_cpu_platform` - (Optional) Specifies a minimum CPU platform for the the VM instance. (Default: `Intel/Auto`). You may refer to [product documentation](https://docs.ucloud.cn/uhost/introduction/uhost/type_new) and [API documentation](https://docs.ucloud.cn/api/uhost-api/create_uhost_instance).
* `min_cpu_platform` - (Optional, ForceNew) Specifies a minimum CPU platform for the the VM instance. (Default: `Intel/Auto`). You may refer to [product documentation](https://docs.ucloud.cn/uhost/introduction/uhost/type_new) and [API documentation](https://docs.ucloud.cn/api/uhost-api/create_uhost_instance).
### data_disks

The `data_disks` supports the following:
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/uk8s_node.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The following arguments are supported:
~> **NOTE:** We recommend set `delete_disks_with_instance` to `true` means delete cloud data disks attached to instance when instance termination. Otherwise, the cloud data disks will be not managed by the terraform after instance termination.

* `disable_schedule_on_create` - (Optional, ForceNew) Whether disable any pod scheduling on the node is created.
* `min_cpu_platform` - (Optional) Specifies a minimum CPU platform for the VM instance. (Default: `Intel/Auto`). You may refer to [min_cpu_platform](https://docs.ucloud.cn/uhost/introduction/uhost/type_new)
* `min_cpu_platform` - (Optional, ForceNew) Specifies a minimum CPU platform for the VM instance. (Default: `Intel/Auto`). You may refer to [min_cpu_platform](https://docs.ucloud.cn/uhost/introduction/uhost/type_new)
- The Intel CPU platform:
- `Intel/Auto` as the Intel CPU platform version will be selected randomly by system;
- `Intel/IvyBridge` as Intel V2, the version of Intel CPU platform selected by system will be `Intel/IvyBridge` and above;
Expand Down

0 comments on commit a2bbcda

Please sign in to comment.