Skip to content

Commit

Permalink
add changelog and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lyu571 committed Nov 8, 2024
1 parent aafe87f commit 71d35d5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changelog/2947.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:enhancement
resource/tencentcloud_kubernetes_addon: support `update_strategy`
```

```release-note:enhancement
resource/tencentcloud_kubernetes_addon_config: support `update_strategy`
```
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func ResourceTencentCloudKubernetesAddonConfig() *schema.Resource {
"update_strategy": {
Type: schema.TypeString,
Optional: true,
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.",
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.",
},

"raw_values": {
Expand Down
3 changes: 2 additions & 1 deletion website/docs/r/kubernetes_addon.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "tencentcloud_kubernetes_addon" "kubernetes_addon" {
cluster_id = tencentcloud_kubernetes_cluster.example.id
addon_name = "cos"
addon_version = "2018-05-25"
raw_values = "e30="
raw_values = "{\"tolerations\":[{\"key\":\"test\",\"value\":\"100\",\"operator\":\"Equal\"}]}"
}
```

Expand All @@ -45,6 +45,7 @@ The following arguments are supported:
* `cluster_id` - (Required, String, ForceNew) ID of cluster.
* `addon_version` - (Optional, String) Version of addon.
* `raw_values` - (Optional, String) Params of addon, base64 encoded json format.
* `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.

## Attributes Reference

Expand Down
1 change: 1 addition & 0 deletions website/docs/r/kubernetes_addon_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The following arguments are supported:
* `cluster_id` - (Required, String, ForceNew) ID of cluster.
* `addon_version` - (Optional, String) Version of addon.
* `raw_values` - (Optional, String) Params of addon, base64 encoded json format.
* `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.

## Attributes Reference

Expand Down

0 comments on commit 71d35d5

Please sign in to comment.