Skip to content

Conversation

@mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Dec 17, 2025

[this is part of https://github.com//pull/415 but given that this one is controversial (as expected) I open this as a separate PR because I think its nice on its own]

When we generate the osbuild manifest we need to take a bunch of commandline options into account. These are collected and passed via manifestOptions in the CLI. There is a (small) overlap with options that are then "converted" to options that need to be passed to manifestgen via manifestgen.Options.

Previously there was manual code for this but its slightly nicer to just embedd the manifestgen.Options into the more general manifestOptions of the CLI. This avoid some boilerplate code and might serve as a useful pattern in other places. So this commit does that now (even though the wins are not that big).

When we generate the osbuild manifest we need to take a bunch
of commandline options into account. These are collected and
passed via `manifestOptions` in the CLI. There is a (small)
overlap with options that are then "converted" to options that
need to be passed to `manifestgen` via `manifestgen.Options`.

Previously there was manual code for this but its slightly
nicer to just embedd the `manifestgen.Options` into the
more general `manifestOptions` of the CLI. This avoid some
boilerplate code and might serve as a useful pattern in other
places. So this commit does that now (even though the wins
are not that big).
@mvo5 mvo5 requested a review from a team as a code owner December 17, 2025 11:05
@mvo5 mvo5 requested review from croissanne, lzap and supakeen and removed request for a team December 17, 2025 11:05
}

opts := &manifestOptions{
ManifestgenOptions: manifestgen.Options{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Frankly, I do not like Options suffix. We have one extreme when everything is SomethingCustomizations. I suggest to consider naming this just Manifestgen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants