kubernetes/pkg/api/testing
Patrick Ohly 91d7882e86 DRA: new API for 1.31
This is a complete revamp of the original API. Some of the key
differences:
- refocused on structured parameters and allocating devices
- support for constraints across devices
- support for allocating "all" or a fixed amount
  of similar devices in a single request
- no class for ResourceClaims, instead individual
  device requests are associated with a mandatory
  DeviceClass

For the sake of simplicity, optional basic types (ints, strings) where the null
value is the default are represented as values in the API types. This makes Go
code simpler because it doesn't have to check for nil (consumers) and values
can be set directly (producers). The effect is that in protobuf, these fields
always get encoded because `opt` only has an effect for pointers.

The roundtrip test data for v1.29.0 and v1.30.0 changes because of the new
"request" field. This is considered acceptable because the entire `claims`
field in the pod spec is still alpha.

The implementation is complete enough to bring up the apiserver.
Adapting other components follows.
2024-07-22 18:09:34 +02:00
..
compat hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
applyconfiguration_test.go Remove ClusterName 2022-05-05 20:12:50 +00:00
backward_compatibility_test.go Implement pod deletion cost 2021-03-01 13:45:58 -05:00
conversion.go
conversion_test.go replace ioutil with io and os for pkg/api 2021-10-30 14:49:09 +08:00
copy_test.go Replace apimachinery diff.StringDiff with cmp 2023-04-12 08:45:31 -07:00
deep_copy_test.go Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
defaulting_test.go DRA: new API for 1.31 2024-07-22 18:09:34 +02:00
doc.go
fuzzer.go api: dynamic resource allocation API 2022-11-10 20:08:24 +01:00
install.go api: dynamic resource allocation API 2022-11-10 20:08:24 +01:00
meta_test.go Remove selflink references in api tests 2022-02-14 11:11:56 +01:00
node_example.json Avoid using Docker Engine as example for container runtime 2022-03-25 00:36:50 +00:00
OWNERS lavalamp is taking a long break 2023-05-11 16:43:38 +00:00
replication_controller_example.json Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
serialization_proto_test.go Change reflect.Ptr to reflect.Pointer 2022-06-26 01:23:43 +09:00
serialization_test.go use generic Set in api 2023-09-25 19:04:08 +08:00
unstructured_test.go Automatically transcode RawExtension between unstructured protocols. 2024-07-09 17:02:34 -04:00