Skip to content

Commit 67b292a

Browse files
committed
fix description error
1 parent 78f29d6 commit 67b292a

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

tencentcloud/internal/helper/transform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func BoolToInt64Pointer(s bool) (i *uint64) {
101101
return
102102
}
103103

104-
func BoolToInt64(s bool) (i *int64) {
104+
func BoolToInt64Ptr(s bool) (i *int64) {
105105
result := int64(0)
106106
if s {
107107
result = int64(1)

tencentcloud/resource_tc_cam_role.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Provides a resource to create a CAM role.
33
44
Example Usage
55
6+
Create normally
7+
68
```hcl
79
resource "tencentcloud_cam_role" "foo" {
810
name = "cam-role-test"
@@ -25,7 +27,7 @@ EOF
2527
}
2628
```
2729
28-
Created with SAML provider
30+
Create with SAML provider
2931
3032
```hcl
3133
resource "tencentcloud_cam_role" "boo" {
@@ -35,7 +37,7 @@ resource "tencentcloud_cam_role" "boo" {
3537
"version": "2.0",
3638
"statement": [
3739
{
38-
"action": ["name/sts:AssumeRole"],
40+
"action": ["name/sts:AssumeRole", "name/sts:AssumeRoleWithWebIdentity"],
3941
"effect": "allow",
4042
"principal": {
4143
"federated": ["qcs::cam::uin/3374997817:saml-provider/XXXX-oooo"]

tencentcloud/resource_tc_kubernetes_cluster_attachment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func TkeInstanceAdvancedSetting() map[string]*schema.Schema {
153153
Type: schema.TypeString,
154154
ForceNew: true,
155155
Optional: true,
156-
Description: "Ase64-encoded User Data text, the length limit is 16KB.",
156+
Description: "Base64-encoded User Data text, the length limit is 16KB.",
157157
},
158158
"is_schedule": {
159159
Type: schema.TypeBool,
@@ -253,7 +253,7 @@ func tkeGetInstanceAdvancedPara(dMap map[string]interface{}, meta interface{}) (
253253
}
254254
}
255255

256-
setting.Unschedulable = helper.BoolToInt64(!dMap["is_schedule"].(bool))
256+
setting.Unschedulable = helper.BoolToInt64Ptr(!dMap["is_schedule"].(bool))
257257

258258
if v, ok := dMap["user_data"]; ok {
259259
setting.UserScript = helper.String(v.(string))

website/docs/r/cam_role.html.markdown

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Provides a resource to create a CAM role.
1212

1313
## Example Usage
1414

15+
Create normally
16+
1517
```hcl
1618
resource "tencentcloud_cam_role" "foo" {
1719
name = "cam-role-test"
@@ -34,7 +36,7 @@ EOF
3436
}
3537
```
3638

37-
Created with SAML provider
39+
Create with SAML provider
3840

3941
```hcl
4042
resource "tencentcloud_cam_role" "boo" {
@@ -44,7 +46,7 @@ resource "tencentcloud_cam_role" "boo" {
4446
"version": "2.0",
4547
"statement": [
4648
{
47-
"action": ["name/sts:AssumeRole"],
49+
"action": ["name/sts:AssumeRole", "name/sts:AssumeRoleWithWebIdentity"],
4850
"effect": "allow",
4951
"principal": {
5052
"federated": ["qcs::cam::uin/3374997817:saml-provider/XXXX-oooo"]

website/docs/r/kubernetes_cluster_attachment.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ The `worker_config` object supports the following:
121121
* `docker_graph_path` - (Optional, ForceNew) Docker graph path. Default is `/var/lib/docker`.
122122
* `is_schedule` - (Optional, ForceNew) Indicate to schedule the adding node or not. Default is true.
123123
* `mount_target` - (Optional, ForceNew) Mount target. Default is not mounting.
124-
* `user_data` - (Optional, ForceNew) Ase64-encoded User Data text, the length limit is 16KB.
124+
* `user_data` - (Optional, ForceNew) Base64-encoded User Data text, the length limit is 16KB.
125125

126126
## Attributes Reference
127127

0 commit comments

Comments
 (0)