-
Notifications
You must be signed in to change notification settings - Fork 376
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(autoscaling): fix diff issue of auto scaling group #1869
Conversation
bfb5f33
to
a195486
Compare
@MisterMX PTAL |
@hasheddan @krishchow @chlunde @MisterMX anyone could give me more suggestions about this PR? |
@hasheddan @krishchow @chlunde @MisterMX anyone could give more suggestions about this PR? |
@liubog2008 @csuzhangxc regarding my comment #1869 (comment) could you add a late init step for launchtemplate? Also, could you rebase your changes on the latest master? Thanks! |
@MisterMX LaunchTemplateId and LanchTemplateName cannot both be set in update api call. |
Signed-off-by: liubo02 <[email protected]>
Then there needs to be some kind of check before making the update call that only sets one of them if both are defined. But I think it makes sense to set both in |
@MisterMX That's hard to determine which one we should use in update call. If we set both of them in And I think |
|
I had a bit of thinking around this issue. Usually we would late initialize properties in the spec that are set by AWS. However, AWS only allows to set one of I thought we could something similar to #1907 and perform a lookup for the ID before comparison and only let the user specify the name. But this would mean a breaking change and it also breaks with the design principle that a provider should match the external API as closely as possible. So this is not an option, either. In conclusion I believe this PR is good as it is now and we can move on with this. Thanks @liubog2008 for your contribution and the discussion! |
Successfully created backport PR #1914 for |
Description of your changes
Fixes #1868
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested