Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktoras Makauskas committed Aug 17, 2023
1 parent b1fe49c commit 4726059
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions castai/resource_rebalancing_schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,7 @@ func scheduleToState(schedule *sdk.ScheduledrebalancingV1RebalancingSchedule, d
if schedule.LaunchConfiguration.RebalancingOptions != nil {
launchConfig["rebalancing_min_nodes"] = schedule.LaunchConfiguration.RebalancingOptions.MinNodes

if _, ok := d.GetOk("launch_configuration.keep_drain_timeout_nodes"); ok {
launchConfig["keep_drain_timeout_nodes"] = schedule.LaunchConfiguration.RebalancingOptions.EvictGracefully
} else {
launchConfig["evict_gracefully"] = schedule.LaunchConfiguration.RebalancingOptions.EvictGracefully
}
launchConfig["evict_gracefully"] = schedule.LaunchConfiguration.RebalancingOptions.EvictGracefully

executionConditions := schedule.LaunchConfiguration.RebalancingOptions.ExecutionConditions
if executionConditions != nil {
Expand Down

0 comments on commit 4726059

Please sign in to comment.