mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 23:59:27 -05:00
fix(autoscaling): preserve launch template user data (#5607)
* fix(autoscaling): preserve launch template user data * test(autoscaling): share launch-template SDK fixtures
This commit is contained in:
1 parent
966da1d7fa
commit
b488d0c418
5 files changed
+206
-10
No files matched your search
+2
-2
@@ -612,7 +612,7 @@ public class AutoScalingReconciler {
|
||||
version.getData().getInstanceTags(),
|
||||
Ec2UserDataDecoder.decodeIfMissing(
|
||||
version.getData().getUserData(), version.getData().getEncodedUserData()),
|
||||
null,
|
||||
version.getData().getEncodedUserData(),
|
||||
ec2Service.iamInstanceProfileArn(version.getData()),
|
||||
asg.getLaunchTemplateId(),
|
||||
asg.getLaunchTemplateName(),
|
||||
@@ -644,7 +644,7 @@ public class AutoScalingReconciler {
|
||||
version.getData().getInstanceTags(),
|
||||
Ec2UserDataDecoder.decodeIfMissing(
|
||||
version.getData().getUserData(), version.getData().getEncodedUserData()),
|
||||
null,
|
||||
version.getData().getEncodedUserData(),
|
||||
ec2Service.iamInstanceProfileArn(version.getData()),
|
||||
specification.getLaunchTemplateId() == null
|
||||
? mixedLaunchTemplate.getLaunchTemplateId()
|
||||
|
||||
Reference in new issue
Block a user