mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 01:41:54 -04:00
As before when adding v1beta2, DRA drivers built using the k8s.io/dynamic-resource-allocation helper packages remain compatible with all Kubernetes release >= 1.32. The helper code picks whatever API version is enabled from v1beta1/v1beta2/v1. However, the control plane now depends on v1, so a cluster configuration where only v1beta1 or v1beta2 are enabled without the v1 won't work.
8 lines
163 B
YAML
8 lines
163 B
YAML
apiVersion: resource.k8s.io/v1
|
|
kind: DeviceClass
|
|
metadata:
|
|
name: example
|
|
spec:
|
|
selectors:
|
|
- cel:
|
|
expression: device.driver == "test-driver.cdi.k8s.io"
|