Koji: expose boot mode in image extra metadata

Also extend the Koji test case to verify that the boot mode information
is in the build extra metadata and that it contains valid value.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-08-04 17:32:07 +02:00 committed by Ondřej Budai
parent 0a5c82086a
commit 4ac6a7a11d
5 changed files with 27 additions and 5 deletions

View file

@ -110,8 +110,12 @@ type BuildRoot struct {
// ImageExtraInfo holds extra metadata about the image.
// This structure is shared for the Extra metadata of the output and the build.
type ImageExtraInfo struct {
// TODO: Ideally this is where the pipeline would be passed.
Arch string `json:"arch"` // TODO: why?
// Koji docs say: "should contain IDs that allow tracking the output back to the system in which it was generated"
// TODO: we should probably add some ID here, probably the OSBuildJob UUID?
Arch string `json:"arch"`
// Boot mode of the image
BootMode string `json:"boot_mode,omitempty"`
}
// BuildOutputExtra holds extra metadata associated with the build output.