composer: don't expose ec2 and ec2-ha RHEL images via WeldrAPI
The `ec2` and `ec2-ha` images include RHUI client packages, which are not publicly available. For this reason, building of such images in the on-premise use case via WeldrAPI would always fail, unless the system would be inside the Red Hat internal network or VPN. Mark the `ec2` and `ec2-ha` image types for `rhel-*` distribution as denied in WeldrAPI by default. Extend and modify affected unit tests. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
aed3bf785c
commit
4e92b65721
3 changed files with 51 additions and 12 deletions
3
cmd/osbuild-composer/testdata/test.toml
vendored
3
cmd/osbuild-composer/testdata/test.toml
vendored
|
|
@ -12,3 +12,6 @@ image_type_denylist = [ "qcow2", "vmdk" ]
|
|||
|
||||
[weldr_api.distros.rhel-84]
|
||||
image_type_denylist = [ "qcow2" ]
|
||||
|
||||
# overrides the default rhel-* configuration
|
||||
[weldr_api.distros."rhel-*"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue