-
Notifications
You must be signed in to change notification settings - Fork 15
Add output to GCE/Azure #146
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
Conversation
Signed-off-by: Itxaka <itxaka@kairos.io>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #146 +/- ##
=======================================
Coverage 15.42% 15.42%
=======================================
Files 10 10
Lines 1621 1621
=======================================
Hits 250 250
Misses 1355 1355
Partials 16 16 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Itxaka <itxaka@kairos.io>
jimmykarily
left a comment
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.
Good job!
We should create some new commands in Auroraboot to expose these. Now they are only usable through the base command (the "declarative" one).
| func Raw2Azure(source string) (string, error) { | ||
| internal.Log.Logger.Info().Str("source", source).Msg("Converting raw disk to Azure VHD") | ||
| name := fmt.Sprintf("%s.vhd", source) | ||
| // Copy raw to new image with VHD appended |
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.
Not "copying" since there is only one copy of the file at any time.
| // Copy raw to new image with VHD appended |
| Reserved [427]byte // This field contains zeroes. | ||
| } | ||
|
|
||
| // Lots of magic numbers here, but they are all defined in the VHD format spec |
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.
😵💫
No description provided.