diff --git a/controllers/instancegroup_controller.go b/controllers/instancegroup_controller.go index 7d199e9a..f4902688 100644 --- a/controllers/instancegroup_controller.go +++ b/controllers/instancegroup_controller.go @@ -197,8 +197,8 @@ func (r *InstanceGroupReconciler) Reconcile(ctxt context.Context, req ctrl.Reque // for igs without any config type mentioned, allow the default to be set to launchconfig. if r.SetDefaultConfigurationToLaunchConfig { - if input.InstanceGroup.EKSSpec.Type != v1alpha1.LaunchConfiguration && input.InstanceGroup.EKSSpec.Type != v1alpha1.LaunchTemplate { - input.InstanceGroup.EKSSpec.Type = v1alpha1.LaunchConfiguration + if input.InstanceGroup.Spec.EKSSpec.Type != v1alpha1.LaunchConfiguration && input.InstanceGroup.Spec.EKSSpec.Type != v1alpha1.LaunchTemplate { + input.InstanceGroup.Spec.EKSSpec.Type = v1alpha1.LaunchConfiguration } }