feat(instance): support snapshot based instance#3787
feat(instance): support snapshot based instance#3787remyleone merged 5 commits intoscaleway:masterfrom
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.
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.
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.
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 <mtortuyaux@microsoft.com>
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: