Skip to content

Commit

Permalink
Add Hyper-V artifact
Browse files Browse the repository at this point in the history
coreos/fedora-coreos-tracker#1424

Co-authored-by: Brent Baude <bbaude@redhat.com>
  • Loading branch information
bgilbert and baude committed Jun 28, 2023
1 parent 66a84a3 commit 25949dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

Changes:

- Add support for Hyper-V images


## stream-metadata-go 0.4.2 (2023-06-01)
Expand Down
1 change: 1 addition & 0 deletions release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type Media struct {
Digitalocean *PlatformBase `json:"digitalocean"`
Exoscale *PlatformBase `json:"exoscale"`
Gcp *PlatformGcp `json:"gcp"`
HyperV *PlatformBase `json:"hyperv"`
Ibmcloud *PlatformIBMCloud `json:"ibmcloud"`
KubeVirt *PlatformKubeVirt `json:"kubevirt"`
Metal *PlatformBase `json:"metal"`
Expand Down
7 changes: 7 additions & 0 deletions release/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ func (releaseArch *Arch) toStreamArch(rel *Release) stream.Arch {
*/
}

if releaseArch.Media.HyperV != nil {
artifacts["hyperv"] = stream.PlatformArtifacts{
Release: rel.Release,
Formats: mapFormats(releaseArch.Media.HyperV.Artifacts),
}
}

if releaseArch.Media.Ibmcloud != nil {
artifacts["ibmcloud"] = stream.PlatformArtifacts{
Release: rel.Release,
Expand Down

0 comments on commit 25949dd

Please sign in to comment.