Repository navigation
rhel10: extract package sets into a single YAML file (HMS-5817) - #1300
Merged
Merged
Conversation
mvo5
force-pushed
the
images-yaml-pkgset-rhel10-2
branch
2 times, most recently
from
March 10, 2025 12:22
f9f285e to
360b099
Compare
Member
|
I like this! |
Contributor
Author
Wonderful! I can either cleanup this draft or we merge #1298 first (which is simpler to review) and then I rebase this one once merged - whatever is easier for you folks reviewing. |
mvo5
force-pushed
the
images-yaml-pkgset-rhel10-2
branch
from
March 11, 2025 08:41
360b099 to
81bd6b5
Compare
The new `common.Must()` helper can be used in e.g. tests that
want a short way of writing `NewFoo() (Foo, error)` or
`LoadBar() (Bar, error)`, e.g.
```go
map[string]rhel.PackageSetFunc{
rhel.OSPkgsKey: func(t *rhel.ImageType) rpmmd.PackageSet {
return common.Must(packagesets.Load(t, "bare-metal", nil))
},
}
```
This commit makes the yaml loader deal with different layout for the yaml directories and also deals with the fact that go:embed does not support symlinks. This is (hopefully) a temporary measure, I expect that eventually there will be a `distros.yaml` or similar file that describes the various distros supported and some details (like their data dir).
mvo5
force-pushed
the
images-yaml-pkgset-rhel10-2
branch
from
March 13, 2025 15:26
81bd6b5 to
e27429b
Compare
mvo5
marked this pull request as ready for review
March 13, 2025 15:28
mvo5
requested review from
achilleas-k,
ondrejbudai,
schuellerf,
supakeen and
thozza
March 13, 2025 15:28
This replaces the rhel10 package sets with yaml files. Note that it uses `common.Must` as a stopgap for now to bridge between the packagesets.Load() helper and the rhel PackageSetFunc. This will just go away once all rhel versions are converted.
mvo5
force-pushed
the
images-yaml-pkgset-rhel10-2
branch
from
March 14, 2025 10:50
e27429b to
8ea95f0
Compare
supakeen
approved these changes
Mar 14, 2025
supakeen
left a comment
Member
There was a problem hiding this comment.
Thank you, super cool stuff. More YAML!
mvo5
added a commit
to mvo5/images
that referenced
this pull request
Mar 17, 2025
Move the rhel9 packages into yaml. Similar to e.g. PR#1300. The existing structure in code was tried to be preserved. Tested via: ```console $ ./tools/gen-manifests-diff no diff found to main ``` Build on top of osbuild#1300
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Mar 17, 2025
Move the rhel9 packages into yaml. Similar to e.g. PR#1300. The existing structure in code was tried to be preserved. Tested via: ```console $ ./tools/gen-manifests-diff no diff found to main ``` Build on top of #1300
Contributor
|
/jira-epic HMS-5284 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An improved version of #1283 based on #1298
This is ready, and once #1312 (or something similar) is merged we will have:
JIRA: HMS-5817