Repository navigation
many: bootc deployment variants - #2636
Conversation
b5facb1 to
c4a073a
Compare
lucasgarfield
left a comment
There was a problem hiding this comment.
Pretty easy for me to follow so I suppose that means it's pretty nice. 😅
Only one real concern.
I could imagine a bit more test coverage but am not yet up to speed on the repo's conventions so I'm not asking for extra coverage - I'd be curious for you to comment on it, though, just for my own information.
What test coverage would you like to see? It has a bunch of unit tests for the variant YAML finding but no actual build tests. Integration tests on the manifest generation? To /me/ it feels like overkill but I am known to avoid them :) |
c4a073a to
4a8ad08
Compare
|
@lucasgarfield / @achilleas-k I've rebased this now on the other PRs and we now check only a single prefix. |
|
Could someone take a look at this one? I've rebased it due to conflicts just now. |
Add deployment variant support to osinfo config loading. When a variant name is provided we look in `<prefix>/variant.d/<name>` and fall back to the default path if it doesn't exist. See [1]. [1]: osbuild#2566 Signed-off-by: Simon de Vlieger <[email protected]>
Variant parameter for `Container.ResolveInfo()` and `ResolveBootcInfo()`. Also allow for resolving available variants from a given container reference. Signed-off-by: Simon de Vlieger <[email protected]>
Allow passing `--bootc-variant` to `bootc` relevant commands to select a variant. Also add `bootc variants` to list variants available in a given reference. Signed-off-by: Simon de Vlieger <[email protected]>
4a8ad08 to
9cd4fd6
Compare
achilleas-k
left a comment
There was a problem hiding this comment.
Skimmed the commits and re-reviewed the changes since last time. Sorry I left this hanging.
LGTM!
Implementation of #2566; I've left the path to be under
/usr/lib/image-builder/bootcas I don't want to change the path again and we don't have a use case for package based trees yet.Commits should be self explanatory see the issue for the reasoning.