-
Notifications
You must be signed in to change notification settings - Fork 152
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
feat(instance): support snapshot based instance #3787
feat(instance): support snapshot based instance #3787
Conversation
bdc9f1a
to
7f521e5
Compare
serverType *instance.ServerType | ||
) | ||
if args.Image != "none" { | ||
getImageResponse, err := apiInstance.GetImage(&instance.GetImageRequest{ |
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.
getImageResponse
is shadowing the one created in previous context.
getImageResponse, err := apiInstance.GetImage(&instance.GetImageRequest{ | |
var err error | |
getImageResponse, err = apiInstance.GetImage(&instance.GetImageRequest{ |
|
||
serverType := getServerType(apiInstance, serverReq.Zone, serverReq.CommercialType) | ||
serverType := getServerType(apiInstance, serverReq.Zone, serverReq.CommercialType) |
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.
serverType
shadows the one created in previous context
serverType := getServerType(apiInstance, serverReq.Zone, serverReq.CommercialType) | |
serverType = getServerType(apiInstance, serverReq.Zone, serverReq.CommercialType) |
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.
Oops thanks a lot. Missed that. That should explain the failing CI.
7f521e5
to
ad04273
Compare
ad04273
to
7ea13bb
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3787 +/- ##
==========================================
- Coverage 75.45% 69.25% -6.21%
==========================================
Files 202 288 +86
Lines 44323 54603 +10280
==========================================
+ Hits 33444 37814 +4370
- Misses 9653 15256 +5603
- Partials 1226 1533 +307 ☔ View full report in Codecov by Sentry. |
This PR allow users to create an instance from a snapshot directly without creating an image. It's already supported by the APIs. Signed-off-by: Mathieu Tortuyaux <[email protected]>
082db02
to
fc68b94
Compare
@remyleone do you want me to rebase on master? |
Thanks a lot @tormath1 for your contribution :) |
Hi,
In this PR I tried to allow the CLI to deploy an instance directly from a snapshot without calling the marketplace API.
Community Note
Release note for CHANGELOG: