Skip to content

Commit

Permalink
Add HyperV artifact to stream and release
Browse files Browse the repository at this point in the history
Following new platform support checklist for Hyperv

coreos/fedora-coreos-tracker#1424
  • Loading branch information
baude authored and bgilbert committed Jun 28, 2023
1 parent 66a84a3 commit f44ffad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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 @@ -265,6 +265,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),
}
}

return stream.Arch{
Artifacts: artifacts,
Images: cloudImages,
Expand Down

0 comments on commit f44ffad

Please sign in to comment.