Skip to content

Commit

Permalink
fix: make maintenance window field computed (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiGuranIonos authored Aug 18, 2022
1 parent 833cf82 commit f456928
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
### Feature
- When no argument is provided for user data source, try to get the email from the client configuration
- Update Ionos Cloud GO SDK v6.1.2. Release notes here [v6.1.2](https://github.com/ionos-cloud/sdk-go/releases/tag/v6.1.2)
- Refactor server and volume creation code
- Make maintenance_window computed

## 6.3.0

Expand Down
4 changes: 4 additions & 0 deletions docs/resources/k8s_node_pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ resource "ionoscloud_lan" "example" {
datacenter_id = ionoscloud_datacenter.example.id
public = false
name = "Lan Example"
lifecycle {
create_before_destroy = true
}
}
resource "ionoscloud_ipblock" "example" {
Expand Down Expand Up @@ -86,6 +89,7 @@ resource "ionoscloud_k8s_node_pool" "example" {
}
```
**Note:** Set `create_before_destroy` on the lan resource if you want to remove it from the nodepool during an update. This is to ensure that the nodepool is updated before the lan is destroyed.

## Argument Reference

Expand Down
1 change: 1 addition & 0 deletions ionoscloud/resource_k8s_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func resourcek8sCluster() *schema.Resource {
Type: schema.TypeList,
Description: "A maintenance window comprise of a day of the week and a time for maintenance to be allowed",
Optional: true,
Computed: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down

0 comments on commit f456928

Please sign in to comment.