In this article
Kueue 0.20.6 accepts valid Kubernetes quantities and resource names while reporting invalid quota specifications with their originating flags.
The November 12 Kueue patch corrects both sides of CLI validation: valid quota expressions were rejected, while some invalid flavor and resource names were accepted. Examples in the release include cpu=1e-3 and foo—bar.example.com/gpu. This matters for declarative queue provisioning because a CLI success and an API acceptance should describe the same object, rather than expose different naming or quantity languages.
A quantity is not a casual number parser
The cpu=1e-3 example demonstrates why quota tooling should follow Kubernetes quantity rules instead of a narrower hand-written numeric format. Scientific notation may be unusual in an operator’s configuration but is still valid input here. Normalizing every value in a wrapper can hide the disagreement without repairing it. Qualification should keep the original expression, the CLI result and the resulting API object together so that equivalent quantities can be checked without losing their submitted representation.
Resource names have their own grammar
The valid resource name containing two hyphens is a separate example from numeric parsing. It demonstrates that a broadly plausible identifier regular expression can reject an API-valid resource. Conversely, accepting a malformed flavor name only delays failure until submission. A useful regression set therefore contains both positive and negative cases for each field class, rather than treating one successful CPU quota as evidence that extended resources and flavor identifiers are validated correctly.
Diagnostics should point to submitted input
PR 18540 says errors now name the invalid specification and flag. That changes the operational value of a failure in scripts creating several queues: the diagnostic can identify the submitted fragment that needs correction. A proposed test should deliberately include two quota flags with one invalid entry and inspect the error attribution. It should also verify that a valid first entry does not cause an invalid later entry to be silently ignored.
Acceptance does not establish available capacity
Matching API validation establishes that the requested object is syntactically and structurally acceptable. It does not prove that a ResourceFlavor selects usable nodes, that borrowing is possible or that a waiting workload can run. Keep object creation and admission observations distinct when reviewing an upgrade. The patch repairs the input boundary; an end-to-end capacity exercise still needs the intended queues, flavors and workloads rather than a parser-only success criterion.
Sources
- kubernetes-sigs/kueue v0.20.6 release notes
- [release-0.20] kueuectl: Validate create cq quota specs with the API server’s rules by k8s-infra-cherrypick-robot
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.