From df6c2d6382b721c7ac0d426e4b3b4171240461e5 Mon Sep 17 00:00:00 2001 From: sbadiger Date: Tue, 22 Aug 2023 23:17:31 -0700 Subject: [PATCH] update spec Signed-off-by: sbadiger --- controllers/instancegroup_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }