Skip to content

kubectl always lists an empty cohort for v1beta2.ClusterQueue #9281

@kshalot

Description

@kshalot

What happened:
When you create a ClusterQueue belonging to a Cohort, the cohort's name is not displayed when running kubectl get cq.

What you expected to happen:
I'd expect the cohort's name to be displayed.

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

  1. Create a ClusterQueue with .spec.cohortName.
  2. Run kubectl get cq.

Anything else we need to know?:
The name of .spec.cohort was changed to .spec.cohortName in v1beta2, but .spec.cohort is still referenced in genclient:

// +kubebuilder:printcolumn:name="Cohort",JSONPath=".spec.cohort",type=string,description="Cohort that this ClusterQueue belongs to"

Since v1beta2 started being used for storage in v0.16.0, it's likely not an issue in versions <0.16.0.

Environment:

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

Metadata

Metadata

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