From f8b2fe01f670ba61a6e67c99b708fef0a305df96 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Wed, 15 Feb 2023 15:18:16 -0600 Subject: [PATCH] Add HyperV artifact to stream and release Following new platform support checklist for Hyperv https://github.com/coreos/fedora-coreos-tracker/issues/1421 --- release/release.go | 1 + release/translate.go | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/release/release.go b/release/release.go index 9e60ae8..5864260 100644 --- a/release/release.go +++ b/release/release.go @@ -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"` diff --git a/release/translate.go b/release/translate.go index 2bd56be..5ebbf52 100644 --- a/release/translate.go +++ b/release/translate.go @@ -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,