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

Azure gallery image support #270

Merged
merged 4 commits into from
Jan 7, 2022
Merged

Conversation

jepio
Copy link
Member

@jepio jepio commented Jan 6, 2022

Azure gallery image support

This PR adds support for using gallery images on Azure. For now this is in kola only, to be used for testing. In a later step we could then move our publishing process to gallery images, which will reduce the possibility of errors when publishing on the marketplace. This would not simplify automation because the marketplace APIs only support VHD urls.

How to use

./bin/kola spawn --azure-auth ~/.azure/azureCredentials.json --azure-blob-url "..." --platform azure --verbose --azure-use-gallery

Testing done

Ran kola spawn successfully.

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)

@jepio jepio requested a review from tormath1 January 6, 2022 10:11
platform/machine/azure/flight.go Outdated Show resolved Hide resolved
platform/api/azure/image.go Outdated Show resolved Hide resolved
platform/api/azure/image.go Outdated Show resolved Hide resolved
platform/api/azure/image.go Show resolved Hide resolved
@jepio jepio force-pushed the jepio/azure-gallery-support branch from d68c63b to 382639f Compare January 6, 2022 13:53
Copy link
Contributor

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for adding that and let's merge this 🚀

GalleryImages can be created from a blob url, and can be republished on Azure
marketplace in a simpler way than a vhd blob. This uses an ARM template as the
azure-sdk-for-go currently does not support all parameters that we need to use.

The gallery support is not enabled by default as there may be differences in
semantics that we want to figure out before it becomes the default path.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
To unify with what we already do for GCP and AWS.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
@jepio jepio force-pushed the jepio/azure-gallery-support branch from 382639f to 1543a5c Compare January 7, 2022 08:08
@jepio jepio merged commit 2b48c06 into flatcar-master Jan 7, 2022
@jepio jepio deleted the jepio/azure-gallery-support branch January 7, 2022 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants