Skip to content

Commit 6f54d22

Browse files
committed
add changelog and doc
1 parent 8ddbdbc commit 6f54d22

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.changelog/2764.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
resource/tencentcloud_kubernetes_cluster_attachment: fix the issue that param `unschedulable` cannot work
3+
```

tencentcloud/services/tke/resource_tc_kubernetes_cluster_attachment.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Provide a resource to attach an existing cvm to kubernetes cluster.
22

3+
~> **NOTE:** Use `unschedulable` to set whether the join node participates in the schedule. The `is_schedule` of 'worker_config' and 'worker_config_overrides' was deprecated.
4+
35
Example Usage
46

57
```hcl

website/docs/r/kubernetes_cluster_attachment.html.markdown

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Provide a resource to attach an existing cvm to kubernetes cluster.
1313

14+
~> **NOTE:** Use `unschedulable` to set whether the join node participates in the schedule. The `is_schedule` of 'worker_config' and 'worker_config_overrides' was deprecated.
15+
1416
## Example Usage
1517

1618
```hcl
@@ -115,7 +117,7 @@ The following arguments are supported:
115117
* `key_ids` - (Optional, List: [`String`], ForceNew) The key pair to use for the instance, it looks like skey-16jig7tx, it should be set if `password` not set.
116118
* `labels` - (Optional, Map, ForceNew) Labels of tke attachment exits CVM.
117119
* `password` - (Optional, String, ForceNew) Password to access, should be set if `key_ids` not set.
118-
* `unschedulable` - (Optional, Int, ForceNew) Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling.
120+
* `unschedulable` - (Optional, Int, ForceNew) Sets whether the joining node participates in the schedule. Default is `0`, which means it participates in scheduling. Non-zero(eg: `1`) number means it does not participate in scheduling.
119121
* `worker_config_overrides` - (Optional, List, ForceNew) Override variable worker_config, commonly used to attach existing instances.
120122
* `worker_config` - (Optional, List, ForceNew) Deploy the machine configuration information of the 'WORKER', commonly used to attach existing instances.
121123

@@ -157,13 +159,13 @@ The `worker_config_overrides` object supports the following:
157159

158160
* `data_disk` - (Optional, List, ForceNew) Configurations of data disk.
159161
* `desired_pod_num` - (Optional, Int, ForceNew) Indicate to set desired pod number in node. valid when the cluster is podCIDR.
160-
* `docker_graph_path` - (Optional, String, ForceNew) Docker graph path. Default is `/var/lib/docker`.
161-
* `extra_args` - (Optional, List, ForceNew) Custom parameter information related to the node. This is a white-list parameter.
162+
* `docker_graph_path` - (Optional, String, ForceNew, **Deprecated**) This argument was no longer supported by TencentCloud TKE. Docker graph path. Default is `/var/lib/docker`.
163+
* `extra_args` - (Optional, List, ForceNew, **Deprecated**) This argument was no longer supported by TencentCloud TKE. Custom parameter information related to the node. This is a white-list parameter.
162164
* `gpu_args` - (Optional, List, ForceNew) GPU driver parameters.
163-
* `is_schedule` - (Optional, Bool, ForceNew) Indicate to schedule the adding node or not. Default is true.
164-
* `mount_target` - (Optional, String, ForceNew) Mount target. Default is not mounting.
165-
* `pre_start_user_script` - (Optional, String, ForceNew) Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
166-
* `user_data` - (Optional, String, ForceNew) Base64-encoded User Data text, the length limit is 16KB.
165+
* `is_schedule` - (Optional, Bool, ForceNew, **Deprecated**) This argument was deprecated, use `unschedulable` instead. Indicate to schedule the adding node or not. Default is true.
166+
* `mount_target` - (Optional, String, ForceNew, **Deprecated**) This argument was no longer supported by TencentCloud TKE. Mount target. Default is not mounting.
167+
* `pre_start_user_script` - (Optional, String, ForceNew, **Deprecated**) This argument was no longer supported by TencentCloud TKE. Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
168+
* `user_data` - (Optional, String, ForceNew, **Deprecated**) This argument was no longer supported by TencentCloud TKE. Base64-encoded User Data text, the length limit is 16KB.
167169

168170
The `worker_config` object supports the following:
169171

@@ -172,7 +174,7 @@ The `worker_config` object supports the following:
172174
* `docker_graph_path` - (Optional, String, ForceNew) Docker graph path. Default is `/var/lib/docker`.
173175
* `extra_args` - (Optional, List, ForceNew) Custom parameter information related to the node. This is a white-list parameter.
174176
* `gpu_args` - (Optional, List, ForceNew) GPU driver parameters.
175-
* `is_schedule` - (Optional, Bool, ForceNew) Indicate to schedule the adding node or not. Default is true.
177+
* `is_schedule` - (Optional, Bool, ForceNew, **Deprecated**) This argument was deprecated, use `unschedulable` instead. Indicate to schedule the adding node or not. Default is true.
176178
* `mount_target` - (Optional, String, ForceNew) Mount target. Default is not mounting.
177179
* `pre_start_user_script` - (Optional, String, ForceNew) Base64-encoded user script, executed before initializing the node, currently only effective for adding existing nodes.
178180
* `user_data` - (Optional, String, ForceNew) Base64-encoded User Data text, the length limit is 16KB.

0 commit comments

Comments
 (0)