pungi/pungi
Jan Kaluza ef33d00f5b Add --schema-override to pungi-config-validate script
Some composes might need extra validation to ensure they are following
certain strict rules - for example containing only signed packages or
packages only from particular Koji tag.

There is currently no way how to check that Pungi configuration fulfills
these extra requirements.

This commit adds new `--schema-override` option to
`pungi-config-validate` script which allows caller to specify path to
JSON schema overriding the default JSON schema and therefore limitting
it further.

For exmaple, to limit the `pkgset_source` to `koji`, one can use
following JSON schema override:

```
{
    "properties": {
        "pkgset_source": {
            "enum": ["koji"]
        }
    }
}
```

It is possible to use `--schema-override` multiple times to apply
multiple schema overrides.

Merges: https://pagure.io/pungi/pull-request/1341
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2020-02-05 10:03:30 +01:00
..
compose_metadata Use $SOURCE_DATE_EPOCH (if set) in discinfo file 2018-10-08 13:33:29 +02:00
ostree ostree: Run commands in universal_newlines mode 2019-10-03 09:30:53 +02:00
phases Remove deprecated warn() call 2020-01-29 15:34:00 +01:00
scripts Add --schema-override to pungi-config-validate script 2020-02-05 10:03:30 +01:00
wrappers iso: Clean up cache for guestmount 2020-01-30 10:35:42 +01:00
__init__.py Move import of modulemd to a separate module 2019-10-03 10:40:31 +02:00
arch.py arch: Drop mapping ppc64 -> ppc64p7 2018-05-16 16:25:58 +02:00
arch_utils.py arch_utils: Fix ResourceWarnings 2020-01-29 13:08:44 +00:00
checks.py Add --schema-override to pungi-config-validate script 2020-02-05 10:03:30 +01:00
common.py Remove FSF address from copyright headers 2017-03-24 09:24:48 +01:00
compose.py Get message from LogRecord with a method 2019-11-11 08:46:01 +01:00
config.py pungi-legacy: expose lorax's --rootfs-size argument 2019-01-14 10:41:37 +01:00
createiso.py Make the Apple/HFS compatibility configurable 2019-02-21 16:11:01 +01:00
dnf_wrapper.py gather: handle metalink in kickstart repos 2019-12-15 21:05:10 +01:00
gather.py Remove deprecated warn() call 2020-01-29 15:34:00 +01:00
gather_dnf.py Remove deprecated warn() call 2020-01-29 15:34:00 +01:00
graph.py Variant as a lookaside - configuration 2018-04-13 14:14:43 +02:00
ks.py Remove package whitelist 2019-09-03 09:31:18 +02:00
linker.py Add script to orchestrate multiple composes 2019-01-08 09:40:36 +01:00
media_split.py Remove misleading warning about size of the ISO 2019-11-04 14:22:59 +08:00
metadata.py Add a new option for customizing version in .treeinfo 2020-01-07 10:55:48 +01:00
module_util.py Move import of modulemd to a separate module 2019-10-03 10:40:31 +02:00
multilib_dnf.py Port to Python 3 2017-10-24 15:15:31 +02:00
multilib_yum.py Whitespace cleanup 2019-05-31 09:14:26 +02:00
notifier.py config: Deprecate release_is_layered option 2019-06-06 13:45:49 +02:00
pathmatch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
paths.py Remove productimg phase 2020-01-03 11:42:38 +00:00
profiler.py gather: Print profiling information to stderr 2018-04-25 14:21:09 +02:00
runroot.py Add support for new Pungi Buildinstall Koji plugin. 2020-01-23 16:09:15 +01:00
util.py hybrid: Download remote files when getting platform 2019-11-19 08:51:18 +01:00