Skip to content

Commit 560d67f

Browse files
authored
Merge pull request #480 from jpculp/fix-gpu-config
testsys: request gpu if nvidia
2 parents 7f975c1 + d2cedae commit 560d67f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/testsys/src/sonobuoy.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ pub(crate) fn workload_crd(test_input: TestInput) -> Result<Test> {
101101
"testsys/type".to_string() => test_input.test_type.to_string(),
102102
"testsys/cluster".to_string() => cluster_resource_name.to_string(),
103103
});
104+
let gpu = test_input.crd_input.variant.variant_flavor() == Some("nvidia");
104105
let plugins: Vec<_> = test_input
105106
.crd_input
106107
.config
@@ -109,7 +110,7 @@ pub(crate) fn workload_crd(test_input: TestInput) -> Result<Test> {
109110
.map(|(name, image)| WorkloadTest {
110111
name: name.to_string(),
111112
image: image.to_string(),
112-
..Default::default()
113+
gpu,
113114
})
114115
.collect();
115116
if plugins.is_empty() {

0 commit comments

Comments
 (0)