Commit 4ca0585
committed
Enable DRAExtendedResource feature gate and extres test in Lambda CI
Detect the Kubernetes version after downloading binaries. When k8s >= 1.35,
pass KUBEADM_FEATURE_GATES=DRAExtendedResource=true to setup-k8s-node.sh
so the API server, scheduler, controller-manager, and kubelet all enable
the Alpha feature gate.
Add test_gpu_extres.bats to the tests-gpu-single target. The test already
self-skips when the gate is absent or k8s < 1.35.
Also fix two pre-existing test issues discovered during validation:
- test_gpu_extres.bats: add DISABLE_COMPUTE_DOMAINS handling in setup_file,
matching all other test files. Without this, chart upgrade enables compute
domains on non-NVSwitch GPUs, crashing the compute-domains container.
- test_gpu_robustness.bats: make nvidia_dra_requests_total assertion
conditional. This counter is only registered after the first DRA request;
it does not appear in the metrics output before any GPU pod has run.
Requires a companion test-infra PR to teach setup-k8s-node.sh to accept
KUBEADM_FEATURE_GATES and generate a kubeadm config file with the gates
applied to all control plane components.
Tested: 15/15 tests pass on Lambda gpu_1x_a10 with k8s v1.35.3.1 parent db4b9b5 commit 4ca0585
File tree
4 files changed
+28
-2
lines changed- hack/ci/lambda
- tests/bats
4 files changed
+28
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
40 | 56 | | |
41 | 57 | | |
42 | 58 | | |
| |||
58 | 74 | | |
59 | 75 | | |
60 | 76 | | |
| 77 | + | |
61 | 78 | | |
62 | 79 | | |
63 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
0 commit comments