Skip to content
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
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_kubernetes_node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ func composedKubernetesAsScalingConfigParaSerial(dMap map[string]interface{}, me
request.InstanceChargeType = &chargeType

if v, ok := dMap["cam_role_name"]; ok {
request.CamRoleName = helper.String(v.(string))
request.CamRoleName = helper.String(v.(string))
}
result = request.ToJsonString()
return result, errRet
Expand Down
7 changes: 6 additions & 1 deletion tencentcloud/resource_tc_kubernetes_node_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func TestAccTencentCloudTkeNodePoolResource(t *testing.T) {
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.system_disk_size", "50"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.data_disk.#", "1"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.internet_max_bandwidth_out", "10"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.cam_role_name", "TCB_QcsRole"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "taints.#", "1"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "labels.test1", "test1"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "labels.test2", "test2"),
Expand Down Expand Up @@ -57,6 +58,7 @@ func TestAccTencentCloudTkeNodePoolResource(t *testing.T) {
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.instance_charge_type", "SPOTPAID"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.spot_instance_type", "one-time"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.spot_max_price", "1000"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.cam_role_name", "TCB_QcsRole"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "max_size", "5"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "min_size", "2"),
resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "labels.test3", "test3"),
Expand Down Expand Up @@ -150,7 +152,7 @@ variable "availability_zone" {
}

variable "cluster_cidr" {
default = "172.31.0.0/16"
default = "192.168.0.0/16"
}

data "tencentcloud_vpc_subnets" "vpc" {
Expand Down Expand Up @@ -222,6 +224,7 @@ resource "tencentcloud_kubernetes_node_pool" "np_test" {
system_disk_size = "50"
security_group_ids = [data.tencentcloud_security_groups.sg.security_groups[0].security_group_id]

cam_role_name = "TCB_QcsRole"
data_disk {
disk_type = "CLOUD_PREMIUM"
disk_size = 50
Expand Down Expand Up @@ -281,6 +284,8 @@ resource "tencentcloud_kubernetes_node_pool" "np_test" {
spot_instance_type = "one-time"
spot_max_price = "1000"

cam_role_name = "TCB_QcsRole"

data_disk {
disk_type = "CLOUD_PREMIUM"
disk_size = 50
Expand Down
9 changes: 5 additions & 4 deletions tencentcloud/resource_tc_vpn_ssl_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ package tencentcloud
import (
"context"
"fmt"
"log"
"time"

vpc "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312"
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit"
"log"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
Expand Down Expand Up @@ -67,8 +68,8 @@ func resourceTencentCloudVpnSslClientCreate(d *schema.ResourceData, meta interfa
ctx := context.WithValue(context.TODO(), logIdKey, logId)

var (
vpcService = VpcService{client: meta.(*TencentCloudClient).apiV3Conn}
request = vpc.NewCreateVpnGatewaySslClientRequest()
vpcService = VpcService{client: meta.(*TencentCloudClient).apiV3Conn}
request = vpc.NewCreateVpnGatewaySslClientRequest()
sslVpnServerId string
)

Expand Down
11 changes: 6 additions & 5 deletions tencentcloud/resource_tc_vpn_ssl_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ package tencentcloud
import (
"context"
"fmt"
"log"
"time"

vpc "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312"
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit"
"log"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
Expand Down Expand Up @@ -99,9 +100,9 @@ func resourceTencentCloudVpnSslServer() *schema.Resource {
Description: "The integrity algorithm. Valid values: SHA1, MD5 and NONE. Default value: NONE.",
},
"encrypt_algorithm": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: "The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC, NONE." +
"Default value: NONE.",
},
Expand Down