keikoproj/instance-manager

When switching primaryType with MixedInstances, type is not added to overrides

eytan-avisror opened this issue · 0 comments

On a mixedInstancesPolicy IG, if the primary instance type is modified, and is not added as part of instancePool, it will result with the following error:

Cannot configure weights because instance type [t2.large] is not in the overrides but is currently running in the group. Add [t2.large] to the overrides, specify a weight, and try again.

As a result, we should address this corner case by adding a temporary override for the running instance type.
Once the primary instance type is rotated, the override should be removed to be consistent with the manifest