-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix disabling spot instances when using launch templates #10198
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
17819d5
to
6df9c2f
Compare
/hold |
6df9c2f
to
7b1592b
Compare
/hold cancel |
7b1592b
to
3265807
Compare
@@ -456,8 +456,8 @@ func (v *AutoscalingGroup) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *Autos | |||
|
|||
if changes.LaunchTemplate != nil { | |||
spec := &autoscaling.LaunchTemplateSpecification{ | |||
LaunchTemplateId: changes.LaunchTemplate.ID, | |||
Version: &launchTemplateVersion, | |||
LaunchTemplateName: changes.LaunchTemplate.ID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just curious, why is this change necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some strange mix in the current code as you can see in other sections of the file:
LaunchTemplateName: e.LaunchTemplate.ID, |
This will be changed in #10151 where I tested the fix initially and this is why the current "mismatch".
/lgtm |
Some extra fixes after #10187, to be able to remove the SpotPrice when already set.
/cc @rifelpet