Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into feature/MKS-OIDC
Browse files Browse the repository at this point in the history
# Conflicts:
#	go.mod
  • Loading branch information
belokobylskii.i committed Jan 10, 2025
2 parents 9ff34fa + 86a50d1 commit e41d69c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions selectel/resource_selectel_mks_nodegroup_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,8 @@ func resourceMKSNodegroupV1Create(ctx context.Context, d *schema.ResourceData, m
if v, ok := d.GetOk("enable_autoscale"); ok {
enableAutoscale := v.(bool)
createOpts.EnableAutoscale = &enableAutoscale
}
if v, ok := d.GetOk("autoscale_min_nodes"); ok {
autoscaleMinNodes := v.(int)
// d.GetOk returns false on autoscale_min_nodes set as 0.
autoscaleMinNodes := d.Get("autoscale_min_nodes").(int)
createOpts.AutoscaleMinNodes = &autoscaleMinNodes
}
if v, ok := d.GetOk("autoscale_max_nodes"); ok {
Expand Down

0 comments on commit e41d69c

Please sign in to comment.