diff --git a/CHANGELOG.md b/CHANGELOG.md index 84fb93b3..cfc057f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ IMPROVEMENTS: BUG FIXES: - Fix regression in instance_pool ds when matching by name #455 +- Fix bug in SKS: `enable_kube_proxy` is always `true` #457 ## 0.65.0 diff --git a/exoscale/resource_exoscale_sks_cluster.go b/exoscale/resource_exoscale_sks_cluster.go index 276bec92..a4b6da21 100644 --- a/exoscale/resource_exoscale_sks_cluster.go +++ b/exoscale/resource_exoscale_sks_cluster.go @@ -303,8 +303,8 @@ func resourceSKSClusterCreate(ctx context.Context, d *schema.ResourceData, meta createReq.AutoUpgrade = &autoUpgrade } - if enableKubeProxy, isSet := d.GetOk(resSKSClusterAttrEnableKubeProxy); isSet { - v := enableKubeProxy.(bool) + if !d.GetRawConfig().GetAttr(resSKSClusterAttrEnableKubeProxy).IsNull() { + v := d.Get(resSKSClusterAttrEnableKubeProxy).(bool) createReq.EnableKubeProxy = &v }