Weldr API: make Image Type denylist distribution-specific
Change the Image Type denylist in Weldr API from being applied to all distributions to being distribution-specific. A special name `*` can be used in the configuration to match any distribution or any image type. Modify NEWS entry and unit tests to reflect this change. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
076bbc5456
commit
b150d57c18
8 changed files with 160 additions and 62 deletions
5
cmd/osbuild-composer/testdata/test.toml
vendored
5
cmd/osbuild-composer/testdata/test.toml
vendored
|
|
@ -7,5 +7,8 @@ allowed_domains = [ "osbuild.org" ]
|
|||
ca = "/etc/osbuild-composer/ca-crt.pem"
|
||||
pg_database = "overwrite-me-db"
|
||||
|
||||
[weldr_api]
|
||||
[weldr_api.distros."*"]
|
||||
image_type_denylist = [ "qcow2", "vmdk" ]
|
||||
|
||||
[weldr_api.distros.rhel-84]
|
||||
image_type_denylist = [ "qcow2" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue