Skip to content

Finished workloads show ADMITTED=False and empty RESERVED IN when listing workloads #8188

@IrvingMg

Description

@IrvingMg

What happened:

After a workload successfully finishes, kubectl get workloads shows ADMITTED: False and RESERVED IN: empty. As shown below:

NAME                         QUEUE        RESERVED IN   ADMITTED   FINISHED   AGE
job-sample-job-8xmgl-34ac3   user-queue                 False      True       5m59s

This happens in both single-cluster and multi-cluster setups.

What you expected to happen:

Workloads should show ADMITTED: True or False, whichever value applies, rather than always False, and should show RESERVED IN: for historical and audit purposes.

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

  1. E2E_RUN_ONLY_ENV=true make kind-image-build test-e2e
  2. kubectl apply -f https://kueue.sigs.k8s.io/examples/admin/single-clusterqueue-setup.yaml
  3. kubectl create -f ./examples/jobs/sample-job.yaml

Anything else we need to know?:

I believe this is an undesired side effect of #7724, which clears the admission status when a workload finishes.

Environment:

  • Kubernetes version (use kubectl version):
  • Kueue version (use git describe --tags --dirty --always):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions