Skip to content
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

Allow pinning vm's machine image, instead of always using latest …stable/cos_cloud #112

Merged
merged 3 commits into from
Mar 25, 2023

Conversation

dennislapchenko
Copy link
Contributor

@dennislapchenko dennislapchenko commented Mar 22, 2023

what

  • Machine image is now pinnable
  • Check the difference between two commits. If we keep only the first commit then full image name needs to be passed everytime. After the second commit you can just provide the short name and it will be verified. One drawback is that this it's not possible to move away from cos images, which probably is not desired anyway.

why

  • Not always you would want to stay on the latest cos image. Not always you want to update it if you're performing other changes.
  • It also seems that not all latest cos images work well with atlantis/secure vm configurations.. Just today i was making tweaks to the module and latest image got deployed too. As a result backend never could be reached.. could not find any logs as to why this happened, but reverting the image instantly fixed the issue.

@bschaatsbergen
Copy link
Member

Thanks for this PR 🙌 @dennislapchenko, currently on a trip - I'm back in 2 days!

@dennislapchenko
Copy link
Contributor Author

@bschaatsbergen so hopefully you will merge this in the coming days? On Monday is my last day at the place where I implemented this, would like to wean them off my personal fork before leaving 😁

@bschaatsbergen
Copy link
Member

Jumping on it now @dennislapchenko !

@bschaatsbergen
Copy link
Member

bschaatsbergen commented Mar 25, 2023

I would think that something like I did in #99 would be a good idea. You give the user the ability to overwrite the entire disk source image if they want too, or let them specify a specific COS version, or get the latest stable COS image. @dennislapchenko - thoughts?

@bschaatsbergen bschaatsbergen added patch A minor, backward compatible change minor New features that doesn't break anything and removed patch A minor, backward compatible change labels Mar 25, 2023
Copy link
Member

@bschaatsbergen bschaatsbergen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@dennislapchenko
Copy link
Contributor Author

@bschaatsbergen agree this was the least confusing way. Thanks for finalising this 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor New features that doesn't break anything
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants