From 2edb057f3bbc0392bf89d668f2f6374e1be87083 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Fri, 12 Mar 2021 13:46:40 +0100 Subject: [PATCH] distro: add URL to OSTreeImageOptions We need to add the URL to the manifest as an ostree source repo so that osbuild can pull the commit to embed it in the boot ISO for the new rhel-edge-installer image type. --- internal/distro/distro.go | 1 + internal/weldr/api.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/distro/distro.go b/internal/distro/distro.go index 5e1b0f172..b1125aae2 100644 --- a/internal/distro/distro.go +++ b/internal/distro/distro.go @@ -97,6 +97,7 @@ type ImageOptions struct { type OSTreeImageOptions struct { Ref string Parent string + URL string } // The SubscriptionImageOptions specify subscription-specific image options diff --git a/internal/weldr/api.go b/internal/weldr/api.go index 0e27ced0e..4ff555f47 100644 --- a/internal/weldr/api.go +++ b/internal/weldr/api.go @@ -1997,6 +1997,7 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request OSTree: distro.OSTreeImageOptions{ Ref: cr.OSTree.Ref, Parent: cr.OSTree.Parent, + URL: cr.OSTree.URL, }, }, api.allRepositories(),