forked from coreos/stream-metadata-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RHELCoreOSExtensions with Azure disk URL
This contains just a URL for now because that's all the current RHCOS cosa metadata has. I'm trying to add e.g. the Azure Blob storage md5 information as well as the full size+sha256, but in practice this data is just the uncompressed VHD; anyone who wants to do "offline" verification outside of Azure can replicate that. For FCOS we may end up uploading the image too, though we hope there to end up in the Marketplace. For now, let's stick this off an explicit extension area. Closes: coreos#13
- Loading branch information
Showing
6 changed files
with
66 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package rhcos | ||
|
||
// Extensions is data specific to Red Hat Enterprise Linux CoreOS | ||
type Extensions struct { | ||
AzureDisk *AzureDisk `json:"azure-disk,omitempty"` | ||
} | ||
|
||
// AzureDisk represents an Azure cloud image. | ||
type AzureDisk struct { | ||
// URL to an image already stored in Azure infrastructure | ||
// that can be copied into an image gallery. Avoid creating VMs directly | ||
// from this URL as that may lead to performance limitations. | ||
URL string `json:"url,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package rhcos | ||
|
||
// Extensions is data specific to Red Hat Enterprise Linux CoreOS | ||
type Extensions struct { | ||
AzureDisk *AzureDisk `json:"azure-disk,omitempty"` | ||
} | ||
|
||
// AzureDisk represents an Azure disk image that can be imported | ||
// into an image gallery or otherwise replicated, and then used | ||
// as a boot source for virtual machines. | ||
type AzureDisk struct { | ||
// Release is the source release version | ||
Release string `json:"release"` | ||
// URL to an image already stored in Azure infrastructure | ||
// that can be copied into an image gallery. Avoid creating VMs directly | ||
// from this URL as that may lead to performance limitations. | ||
URL string `json:"url,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters