Ed Bartosh
6ce294558a
kubelet: DRA: add stress test
...
The tests calls PrepareResources and UnprepareResources API in
parallel to help discover race conditions.
2024-05-03 13:30:29 +00:00
Kevin Klues
86a18d5333
kubelet: DRA: update manager test to adhere to new claiminfo cache APIs
...
Signed-off-by: Kevin Klues <kklues@nvidia.com >
2024-05-03 13:28:37 +00:00
Ayato Tokubi
d04f87abde
add nil check for Node(Un)PrepareResources.
...
Signed-off-by: Ayato Tokubi <atokubi@redhat.com >
2024-04-04 23:24:25 +00:00
HirazawaUi
10b6319e64
fix slow dra unit test
2024-03-16 22:21:15 +08:00
Ed Bartosh
26881132bd
kubelet: assign Node as an owner for the ResourceSlice
...
Co-authored-by: Patrick Ohly <patrick.ohly@intel.com >
2024-03-15 09:46:13 +02:00
Patrick Ohly
d59676a545
dra kubelet: publish NodeResourceSlices
...
The information is received from the DRA driver plugin through a new gRPC
streaming interface. This is backwards compatible with old DRA driver kubelet
plugins, their gRPC server will return "not implemented" and that can be
handled by kubelet. Therefore no API break is needed.
However, DRA drivers need to be updated because the Go API changed. They can
return
status.New(codes.Unimplemented, "no node resource support").Err()
if they don't support the new ListAndWatchResources method and
structured parameters.
The controller in kubelet then synchronizes this information from the driver
with NodeResourceSlice objects, creating, updating and deleting them as needed.
2024-03-07 22:22:13 +01:00
TommyStarK
6f021e99cf
dra: increase timeout in setupFakeDRADriverGRPCServer to prevent tests to flake.
...
Signed-off-by: TommyStarK <thomasmilox@gmail.com >
2024-01-11 09:20:04 +01:00
charles-chenzz
abaf7a800d
increase timeout in fakeDraDriverGrpcServer to fix flake in dra/manger_test
2023-11-07 19:38:27 +08:00
adrianc
3738111337
Add unit tests
...
adjust existing tests and add new test flows
to cover new DRA manager behaviour
Signed-off-by: adrianc <adrianc@nvidia.com >
2023-10-25 13:20:22 +03:00
Kubernetes Prow Robot
82bca6304b
Merge pull request #119464 from TommyStarK/dra/cleanup-manager-unit-tests
...
dra: cleanup manager unit tests
2023-09-18 07:08:43 -07:00
charles-chenzz
ba9ce3ab08
fix flaky test on dra TestPrepareResources/should_timeout
...
Co-authored-by: TommyStarK <thomasmilox@gmail.com >
2023-08-03 22:37:54 +08:00
TommyStarK
391c1a3ecc
dra: cleanup manager unit tests
...
Signed-off-by: TommyStarK <thomasmilox@gmail.com >
2023-08-02 23:35:45 +02:00
Ed Bartosh
0ec99fb0b2
Kubelet DRA: fix failing test cases
2023-07-18 19:06:33 +03:00
charles-chenzz
0372e4b662
add unit test for dra/manager.go.
...
Co-Authored-By: charles-chenzz <Rekles666@gmail.com >
Signed-off-by: TommyStarK <thomasmilox@gmail.com >
2023-07-18 12:14:27 +02:00