Files
kubernetes/test/e2e/dra/test-driver/deploy/example/broken-resourceclass.yaml
Patrick Ohly 29941b8d3e api: resource.k8s.io v1alpha1 -> v1alpha2
For Kubernetes 1.27, we intend to make some breaking API changes:
- rename PodScheduling -> PodSchedulingHints (https://github.com/kubernetes/kubernetes/issues/114283)
- extend ResourceClaimStatus (https://github.com/kubernetes/enhancements/pull/3802)

We need to switch from v1alpha1 to v1alpha2 for that.
2023-03-14 07:52:03 +01:00

15 lines
494 B
YAML

# This storage class intentionally doesn't match any nodes.
# When using it instead of a functional one, scheduling a pod leads to:
# Warning FailedScheduling 16s default-scheduler 0/1 nodes are available: 1 excluded via potential node filter in resource class.
apiVersion: resource.k8s.io/v1alpha2
kind: ResourceClass
metadata:
name: example
driverName: test-driver.cdi.k8s.io
suitableNodes:
nodeSelectorTerms:
- matchExpressions:
- key: no-such-label
operator: Exists