Skip to content

Commit 78f29d6

Browse files
committed
rename user_script to user_data
1 parent 1bc88de commit 78f29d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tencentcloud/resource_tc_kubernetes_cluster_attachment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func TkeInstanceAdvancedSetting() map[string]*schema.Schema {
149149
},
150150
},
151151
},
152-
"user_script": {
152+
"user_data": {
153153
Type: schema.TypeString,
154154
ForceNew: true,
155155
Optional: true,
@@ -255,7 +255,7 @@ func tkeGetInstanceAdvancedPara(dMap map[string]interface{}, meta interface{}) (
255255

256256
setting.Unschedulable = helper.BoolToInt64(!dMap["is_schedule"].(bool))
257257

258-
if v, ok := dMap["user_script"]; ok {
258+
if v, ok := dMap["user_data"]; ok {
259259
setting.UserScript = helper.String(v.(string))
260260
}
261261

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_script` - (Optional, ForceNew) Ase64-encoded User Data text, the length limit is 16KB.
124+
* `user_data` - (Optional, ForceNew) Ase64-encoded User Data text, the length limit is 16KB.
125125

126126
## Attributes Reference
127127

0 commit comments

Comments
 (0)