Skip to content

Commit

Permalink
update spec
Browse files Browse the repository at this point in the history
Signed-off-by: sbadiger <[email protected]>
  • Loading branch information
shreyas-badiger committed Aug 31, 2023
1 parent 50ffd4d commit df6c2d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/instancegroup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit df6c2d6

Please sign in to comment.