Skip to content

Commit

Permalink
bug fix for launchTemplate loop reconcile
Browse files Browse the repository at this point in the history
Signed-off-by: sbadla1 <sahil_badla@intuit.com>
  • Loading branch information
sahilbadla committed Feb 9, 2022
1 parent 6d1c9b0 commit 1b1093d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/provisioners/eks/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (ctx *EksInstanceGroupContext) CloudDiscovery() error {
if spec.IsLaunchConfiguration() {

state.ScalingConfiguration, err = scaling.NewLaunchConfiguration(instanceGroup.NamespacedName(), ctx.AwsWorker, &scaling.DiscoverConfigurationInput{
ScalingGroup: targetScalingGroup,
ScalingGroup: targetScalingGroup,
TargetConfigName: state.ScalingConfiguration.Name(),
})
if err != nil {
Expand All @@ -239,7 +239,7 @@ func (ctx *EksInstanceGroupContext) CloudDiscovery() error {

if spec.IsLaunchTemplate() {
state.ScalingConfiguration, err = scaling.NewLaunchTemplate(instanceGroup.NamespacedName(), ctx.AwsWorker, &scaling.DiscoverConfigurationInput{
ScalingGroup: targetScalingGroup,
ScalingGroup: targetScalingGroup,
TargetConfigName: state.ScalingConfiguration.Name(),
})
if err != nil {
Expand Down

0 comments on commit 1b1093d

Please sign in to comment.