diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-11 12:36:55 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-11 12:43:17 +0100 |
commit | ce6f9d77c80849d11b442cf4c6783ec972456521 (patch) | |
tree | 1f08e432477c2f76429a4ecb0753f4590331830e /src/package/package.rs | |
parent | 0737188dd12a389c419e51d9c208647b4f6732e4 (diff) |
Add allowlist feature
This patch adds the "allowlist" feature for packages.
A package can have a list of allowed images to be built on - butido will
not execute the submit if one package is not allowed on the image
passed to butido.
This is the opposite of the denylist, of course.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/package/package.rs')
-rw-r--r-- | src/package/package.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/package/package.rs b/src/package/package.rs index 93581fe..7db3795 100644 --- a/src/package/package.rs +++ b/src/package/package.rs @@ -46,6 +46,10 @@ pub struct Package { #[getset(get = "pub")] #[serde(skip_serializing_if = "Option::is_none")] + allowed_images: Option<Vec<ImageName>>, + + #[getset(get = "pub")] + #[serde(skip_serializing_if = "Option::is_none")] deny_on_images: Option<Vec<ImageName>>, #[getset(get = "pub")] @@ -65,6 +69,7 @@ impl Package { patches: vec![], environment: None, flags: None, + allowed_images: None, deny_on_images: None, phases: HashMap::new(), } |