Skip to content

Commit

Permalink
Merge pull request #137 from ecpullen/custom-configs
Browse files Browse the repository at this point in the history
testsys: Add test type for cluster templating
  • Loading branch information
ecpullen authored Jan 30, 2024
2 parents 3a3bc9f + 55a3d5d commit a3b6477
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/testsys/src/crds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,14 @@ pub(crate) trait CrdCreator: Sync {
&mut self
.additional_fields(&test_type.to_string())
.into_iter()
// Add the image id in case it is needed for cluster creation
// Add the image id, original test type, and resolved test type in case
// it is needed for cluster creation
.chain(Some(("image-id".to_string(), image_id.clone())))
.chain(Some((
"test-flavor".to_string(),
crd_input.test_flavor.clone(),
)))
.chain(Some(("test-type".to_string(), test_type.to_string())))
.collect::<BTreeMap<String, String>>(),
)?,
hardware_csv: &crd_input
Expand Down

0 comments on commit a3b6477

Please sign in to comment.