kubernetes-sigs / scheduler-plugins

Repository for out-of-tree scheduler plugins based on scheduler framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add more meaningful fields to crd objects

googs1025 opened this issue · comments

Area

  • Scheduler
  • Controller
  • Helm Chart
  • Documents

Other components

No response

What happened?

Currently, when using kubectl get with podgroup and elasticquotas, there are only two fields displayed: name and age. We should provide more meaningful fields to make it more convenient to use.

root@VM-0-15-ubuntu:/home/ubuntu# kubectl get podgroups.scheduling.x-k8s.io
NAME   AGE
pg1   2d8h
root@VM-0-15-ubuntu:/home/ubuntu# kubectl get elasticquotas.scheduling.x-k8s.io              
NAME   AGE
test    19h

What did you expect to happen?

We should provide more meaningful fields, which will be more convenient to use
as follows:

root@VM-0-15-ubuntu:/home/ubuntu# kubectl get podgroups.scheduling.x-k8s.io
NAME   PHASE        MINMEMBER   AGE
pg1    Scheduling   3           19h
root@VM-0-15-ubuntu:/home/ubuntu# kubectl get elasticquotas.scheduling.x-k8s.io
NAME   USED                                            MIN                                             AGE
test   {"cpu":"0","memory":"0","nvidia.com/gpu":"0"}   {"cpu":10,"memory":"20Gi","nvidia.com/gpu":1}   27h

How can we reproduce it (as minimally and precisely as possible)?

No response

Anything else we need to know?

No response

Kubernetes version

None

$ kubectl version
# paste output here

Scheduler Plugins version

None

/remove-kind bug

/assign

I think this would be a useful improvement. Perhaps /kind feature?

/kind feature
sure, thanks @ffromani