kubernetes-sigs / kueue

Kubernetes-native Job Queueing
https://kueue.sigs.k8s.io
Apache License 2.0
1.49k stars 268 forks source link

TAS: Kueue crashes on admittision when kubernetes.io/hostname is in the lowest level #3706

Closed mimowo closed 16 minutes ago

mimowo commented 22 hours ago

What happened:

Kueue crashes with panic when admitting workload, when kuberntes.io/hostname is in the lowest level.

What you expected to happen:

No crash.

How to reproduce it (as minimally and precisely as possible):

This commits reproduces the issue: https://github.com/kubernetes-sigs/kueue/commit/5587f0671b6719e4e015450dc8bd8daa7f3aa892

Anything else we need to know?:

This is because the usage copies here is based on only the last value (node name).

mimowo commented 22 hours ago

/assign @PBundyra