From 81cb5b7df22faec32df2176bc0f66c56644dc99c Mon Sep 17 00:00:00 2001 From: Morten Torkildsen Date: Tue, 9 Sep 2025 22:13:32 +0000 Subject: [PATCH] DRA: Fix PrioritizedList scheduler perf test --- .../dra/prioritizedlist/performance-config.yaml | 2 ++ .../dra/templates/deviceclass-no-devices.yaml | 8 ++++++++ .../templates/resourceclaimtemplate-first-available.yaml | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 test/integration/scheduler_perf/dra/templates/deviceclass-no-devices.yaml diff --git a/test/integration/scheduler_perf/dra/prioritizedlist/performance-config.yaml b/test/integration/scheduler_perf/dra/prioritizedlist/performance-config.yaml index 46a4e5442ab..f927ca0e6f5 100644 --- a/test/integration/scheduler_perf/dra/prioritizedlist/performance-config.yaml +++ b/test/integration/scheduler_perf/dra/prioritizedlist/performance-config.yaml @@ -35,6 +35,8 @@ maxClaimsPerNodeParam: $maxClaimsPerNode - opcode: createAny templatePath: ../templates/deviceclass.yaml + - opcode: createAny + templatePath: ../templates/deviceclass-no-devices.yaml - opcode: createAny templatePath: ../templates/resourceclaim.yaml countParam: $initClaims diff --git a/test/integration/scheduler_perf/dra/templates/deviceclass-no-devices.yaml b/test/integration/scheduler_perf/dra/templates/deviceclass-no-devices.yaml new file mode 100644 index 00000000000..c822aaf9f68 --- /dev/null +++ b/test/integration/scheduler_perf/dra/templates/deviceclass-no-devices.yaml @@ -0,0 +1,8 @@ +apiVersion: resource.k8s.io/v1 +kind: DeviceClass +metadata: + name: no-devices-class +spec: + selectors: + - cel: + expression: device.driver == "no-such-driver.cdi.k8s.io" diff --git a/test/integration/scheduler_perf/dra/templates/resourceclaimtemplate-first-available.yaml b/test/integration/scheduler_perf/dra/templates/resourceclaimtemplate-first-available.yaml index 8c2dea4280f..60e0244a3b1 100644 --- a/test/integration/scheduler_perf/dra/templates/resourceclaimtemplate-first-available.yaml +++ b/test/integration/scheduler_perf/dra/templates/resourceclaimtemplate-first-available.yaml @@ -9,6 +9,6 @@ spec: - name: req-0 firstAvailable: - name: sub-0 - deviceClassName: no-such-class + deviceClassName: no-devices-class - name: sub-1 deviceClassName: test-class