4 Commits
Author SHA1 Message Date
SamWang 1ce37060f6 Lock DRADeviceTaints and DRADeviceTaintRules feature gates to GA in 1.38, remove in 1.41
Also update tests that toggled these gates off to instead pin the
emulated version to 1.37, where the gates are still unlocked, and
regenerate the feature-gate reference docs.
2026-09-18 12:48:46 -04:00
Noureldin 8c02d3141f DRA resource pool status request (#140170)
* Fix RPSR device accounting: cap-at-1 per device, skip AdminAccess, count taints as unavailable

Signed-off-by: Nour <nurmn3m@gmail.com>

* Count DeviceTaintRule-tainted devices as unavailable in RPSR controller

Signed-off-by: Nour <nurmn3m@gmail.com>

* Add RPSR API types: v1 PartitionTypeAttribute and v1alpha3 PoolStatus partition/counter/shareable views

Signed-off-by: Nour <nurmn3m@gmail.com>

* Regenerate for RPSR partition/counter/shareable API types

Signed-off-by: Nour <nurmn3m@gmail.com>

* Add RPSR validation and feature-gate drop for PartitionTypeAttribute

Signed-off-by: Nour <nurmn3m@gmail.com>

* Compute partition/counter/shareable views in RPSR controller

Signed-off-by: Nour <nurmn3m@gmail.com>

* Add RPSR integration tests for partition and shareable views

Signed-off-by: Nour <nurmn3m@gmail.com>

* Fix RPSR e2e view tests: own context and complete pool matchers

Signed-off-by: Nour <nurmn3m@gmail.com>

* Fix tests

Signed-off-by: Nour <nurmn3m@gmail.com>

* Migrate RPSR controller to v1 DeviceTaintRule API

Signed-off-by: Nour <nurmn3m@gmail.com>

* Fix linter test && update generated files

Signed-off-by: Nour <nurmn3m@gmail.com>

* Address API review on ResourcePoolStatusRequest status types

Signed-off-by: Nour <nurmn3m@gmail.com>

* Adding tests to cover missing parts like consumable capacity

Signed-off-by: Nour <nurmn3m@gmail.com>

* Address API review: gate partitionTypeAttribute and add request-side selection

Signed-off-by: Nour <nurmn3m@gmail.com>

* Gate partitionTypeAttribute declaratively and consolidate tests

Signed-off-by: Nour <nurmn3m@gmail.com>

* Scope partitionTypeAttribute to slices with partitionable devices

Signed-off-by: Nour <nurmn3m@gmail.com>

* Group partitionSummary per slice attribute and self-describe each entry

Signed-off-by: Nour <nurmn3m@gmail.com>

* Fix RPSR integration fixture to declare partitionTypeAttribute only on the device slice

Signed-off-by: Nour <nurmn3m@gmail.com>

* Rename request default attribute, scope slice doc, pair required markers

Signed-off-by: Nour <nurmn3m@gmail.com>

* Make shareable capacity Quantity fields required pointers, hoist attribute domain-strip

Signed-off-by: Nour <nurmn3m@gmail.com>

* Regenerate declarative validations for partitionTypeAttribute to fix verify test

Signed-off-by: Nour <nurmn3m@gmail.com>

---------

Signed-off-by: Nour <nurmn3m@gmail.com>
2026-07-22 15:05:52 +00:00
Nour 58cbde2aff Pass individual informers, move DRA controllers to resource.go, simplify retry logic and metric tests
Signed-off-by: Nour <nurmn3m@gmail.com>
2026-03-19 16:50:03 +02:00
Nour 4dffbf5b2a Add tests for ResourcePoolStatusRequest
Add unit tests for handwritten and declarative validation, controller
logic, metrics, table printer output, controller-manager registration,
etcd storage round-trip, and an integration test for the full RPSR
lifecycle. Also add an e2e test exercising the DRA test driver with
RPSR and the example manifest.
2026-03-19 16:50:03 +02:00