Skip to content

kueue: fix ClusterQueue flavor names to match ResourceFlavor examples - #1177

Open
Adi-204 wants to merge 1 commit into
headlamp-k8s:mainfrom
Adi-204:fix/kueue-clusterqueue-flavor-names
Open

kueue: fix ClusterQueue flavor names to match ResourceFlavor examples#1177
Adi-204 wants to merge 1 commit into
headlamp-k8s:mainfrom
Adi-204:fix/kueue-clusterqueue-flavor-names

Conversation

@Adi-204

@Adi-204 Adi-204 commented Aug 14, 2026

Copy link
Copy Markdown

Summary

  • kueue/test-files/deploy/clusterqueue-team-a.yaml referenced flavors named default and spot, but the corresponding ResourceFlavor test manifests (resourceflavor-default.yaml / resourceflavor-spot.yaml) are named default-flavor and spot-flavor.
  • Following the documented steps (apply ResourceFlavors, then ClusterQueue, then a Job), the ClusterQueue never becomes ready to admit workloads because it points at flavors that don't exist.
  • Renamed the flavor references in the ClusterQueue to default-flavor / spot-flavor so they match the ResourceFlavor examples.

Root cause

The ClusterQueue test file was added in #864 with flavor names default/spot. The ResourceFlavor example files were added later already named default-flavor/spot-flavor, and the ClusterQueue was never updated to match.

Verification

Reproduced against a live cluster (minikube + Kueue v0.19.1, v1beta2 API):

  • Before fix: kubectl get clusterqueue team-astatus.conditions: Active=False, reason=FlavorNotFound. No workload can ever be admitted.
  • After fix: Active=True, reason=Ready, message="Can admit new workloads".
  • Ran the full flow (ResourceFlavors → ClusterQueue → LocalQueue → sample Job): the sample Job's workload reached QuotaReserved=True, Admitted=True, and pods ran successfully.

Test plan

  • Applied resourceflavor-default.yaml, resourceflavor-spot.yaml, resourceflavor-topology.yaml, then the original clusterqueue-team-a.yaml — confirmed Active=False (FlavorNotFound).
  • Re-applied with the fix — confirmed Active=True (Ready).
  • Applied localqueue-team-a.yaml and job-sample-workload.yaml — confirmed the Job's Workload was admitted and pods ran to completion.

clusterqueue-team-a.yaml referenced flavors "default" and "spot", but
the corresponding ResourceFlavor test manifests are named
"default-flavor" and "spot-flavor". Applying the manifests as
documented left the ClusterQueue with status Active=False,
reason=FlavorNotFound, so no workload could ever be admitted.

Verified against a live cluster (Kueue v0.19.1): with the mismatched
names the ClusterQueue never becomes Active; renaming to
default-flavor/spot-flavor fixes it and the sample Job gets admitted
end-to-end.

Signed-off-by: Adi-204 <adiboghawala@gmail.com>
@Adi-204
Adi-204 force-pushed the fix/kueue-clusterqueue-flavor-names branch from 91d2783 to 4f0cdf3 Compare August 14, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant