﻿# Kueue merges provisioning PodSets only when their assigned flavors match

ProvisioningRequest merging now respects assigned ResourceFlavor boundaries instead of requesting heterogeneous PodSets entirely on the first flavor.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-ops-kueue-provisioning-flavor-merge-boundary/
Language: en

Kueue 0.20.6 corrects podSetMergePolicy when admitted PodSets use different ResourceFlavors. Previously they could be merged into a ProvisioningRequest that requested all capacity on the first PodSet’s flavor. The fix preserves the distinction between allocation classes. Combining counts is valid only when the corresponding placement requirements are compatible; otherwise a smaller request representation silently changes what infrastructure is being requested.

## Admission assignments are part of the request meaning

PR 18676 says merging is now limited to PodSets assigned to the same flavors. The relevant comparison is therefore the admitted assignment, not merely similar Pod templates or equal resource quantities. A proposed fixture uses two PodSets with visibly different assigned flavors and tracks those assignments into the generated ProvisioningRequest. Comparing only the total requested capacity would miss the bug because the aggregate count can remain correct while its flavor attribution is wrong.

## First-entry behavior needs an order check

The old result used the first PodSet’s flavor for the combined request. Reordering heterogeneous PodSets is thus a useful diagnostic: it should not arbitrarily redirect the entire requested capacity to a different infrastructure class. The proposed test compares generated requests after a collection permutation while preserving the underlying assignments. This is not a demand for byte-identical output ordering; it checks that semantic capacity-to-flavor mapping survives changes in input presentation.

## Same-flavor merging remains a positive case

A regression plan should also include PodSets with matching assignments and verify that valid merging still works under the configured policy. Rejecting all merges would avoid this bug while discarding the intended behavior. The release’s boundary is compatibility of assigned flavors, not an instruction to create one request for every PodSet in all circumstances. Keep expected grouping explicit so the test distinguishes selective merging from a blanket disablement of the feature.

## Correct requests do not guarantee provisioning

Preserving the assignment in a ProvisioningRequest establishes faithful translation of the admission decision. It does not prove that an external provisioner can supply the requested nodes or that quota remains available. Qualification should inspect downstream provisioning status separately. The patch prevents a request from asking for the wrong mix of flavors; actual fulfillment, node readiness and workload scheduling remain later operational outcomes with their own evidence and failure modes.

## Sources

- [kubernetes-sigs/kueue v0.20.6 release notes](https://github.com/kubernetes-sigs/kueue/releases/tag/v0.20.6)
- [Automated cherry pick of #16834: ProvisioningRequest: Merge only PodSets assigned to the same flavors by mbobrovskyi](https://github.com/kubernetes-sigs/kueue/pull/18676)

## Related reading

- [GPUs in Kubernetes: scheduling CPU, RAM and accelerators together](/journal/kubernetes-gpu-scheduling/)
- [Google Cloud GPU capacity errors despite available quota](/journal/google-cloud-gpu-zone-resource-pool-exhausted/)
