Skip to content

Commit aaa3846

Browse files
committed
fix enable_kube_proxy bug in SKS
1 parent 84460fb commit aaa3846

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ IMPROVEMENTS:
99
BUG FIXES:
1010

1111
- Fix regression in instance_pool ds when matching by name #455
12+
- Fix bug in SKS: `enable_kube_proxy` is always `true` #457
1213

1314
## 0.65.0
1415

exoscale/resource_exoscale_sks_cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ func resourceSKSClusterCreate(ctx context.Context, d *schema.ResourceData, meta
303303
createReq.AutoUpgrade = &autoUpgrade
304304
}
305305

306-
if enableKubeProxy, isSet := d.GetOk(resSKSClusterAttrEnableKubeProxy); isSet {
307-
v := enableKubeProxy.(bool)
306+
if d.GetRawConfig().GetAttr("enable_kube_proxy").IsNull() == false {
307+
v := d.Get(resSKSClusterAttrEnableKubeProxy).(bool)
308308
createReq.EnableKubeProxy = &v
309309
}
310310

0 commit comments

Comments
 (0)