Skip to content

Commit 71d35d5

Browse files
committed
add changelog and doc
1 parent aafe87f commit 71d35d5

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.changelog/2947.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_kubernetes_addon: support `update_strategy`
3+
```
4+
5+
```release-note:enhancement
6+
resource/tencentcloud_kubernetes_addon_config: support `update_strategy`
7+
```

tencentcloud/services/tke/resource_tc_kubernetes_addon_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func ResourceTencentCloudKubernetesAddonConfig() *schema.Resource {
4545
"update_strategy": {
4646
Type: schema.TypeString,
4747
Optional: true,
48-
Description: "The update strategy of Addon parameters. Valid values ​​are: `replace` and `merge`. The default value is merge, which is compatible with the old version API. `replace`: Use the new RawValues ​​to completely replace the original RawValues ​​of Addon. `merge`: Add or update the corresponding parameters in the original RawValues ​​of Addon according to the new RawValues.",
48+
Description: "The update strategy of Addon parameters. Valid values are: `replace` and `merge`. The default value is merge, which is compatible with the old version API. `replace`: Use the new RawValues to completely replace the original RawValues of Addon. `merge`: Add or update the corresponding parameters in the original RawValues of Addon according to the new RawValues. Only valid in update addon process.",
4949
},
5050

5151
"raw_values": {

website/docs/r/kubernetes_addon.html.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resource "tencentcloud_kubernetes_addon" "kubernetes_addon" {
3333
cluster_id = tencentcloud_kubernetes_cluster.example.id
3434
addon_name = "cos"
3535
addon_version = "2018-05-25"
36-
raw_values = "e30="
36+
raw_values = "{\"tolerations\":[{\"key\":\"test\",\"value\":\"100\",\"operator\":\"Equal\"}]}"
3737
}
3838
```
3939

@@ -45,6 +45,7 @@ The following arguments are supported:
4545
* `cluster_id` - (Required, String, ForceNew) ID of cluster.
4646
* `addon_version` - (Optional, String) Version of addon.
4747
* `raw_values` - (Optional, String) Params of addon, base64 encoded json format.
48+
* `update_strategy` - (Optional, String) The update strategy of Addon parameters. Valid values are: `replace` and `merge`. The default value is merge, which is compatible with the old version API. `replace`: Use the new RawValues to completely replace the original RawValues of Addon. `merge`: Add or update the corresponding parameters in the original RawValues of Addon according to the new RawValues. Only valid in update addon process.
4849

4950
## Attributes Reference
5051

website/docs/r/kubernetes_addon_config.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ The following arguments are supported:
3232
* `cluster_id` - (Required, String, ForceNew) ID of cluster.
3333
* `addon_version` - (Optional, String) Version of addon.
3434
* `raw_values` - (Optional, String) Params of addon, base64 encoded json format.
35+
* `update_strategy` - (Optional, String) The update strategy of Addon parameters. Valid values are: `replace` and `merge`. The default value is merge, which is compatible with the old version API. `replace`: Use the new RawValues to completely replace the original RawValues of Addon. `merge`: Add or update the corresponding parameters in the original RawValues of Addon according to the new RawValues. Only valid in update addon process.
3536

3637
## Attributes Reference
3738

0 commit comments

Comments
 (0)