davidB / kubectl-view-allocations

kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)
https://crates.io/crates/kubectl-view-allocations
Creative Commons Zero v1.0 Universal
665 stars 42 forks source link

when group by `namespace` first, the namespace is not displayed #218

Closed davidB closed 1 year ago

davidB commented 1 year ago
❯ kubectl view-allocations -u -g namespace -g resource -g node
 Resource                                               Utilization  Requested     Limit  Allocatable  Free
  ├─ cpu                                                       5.0m         __        __           __    __
  │  ├─ ip-10-132-40-69.eu-central-1.compute.internal          1.0m         __        __           __    __
  │  └─ ip-10-132-41-138.eu-central-1.compute.internal         4.0m         __        __           __    __
  ├─ memory                                                 105.1Mi         __        __           __    __
  │  ├─ ip-10-132-40-69.eu-central-1.compute.internal        37.6Mi         __        __           __    __
  │  └─ ip-10-132-41-138.eu-central-1.compute.internal       67.5Mi         __        __           __    __
  └─ pods                                                        __        2.0       2.0           __    __
     ├─ ip-10-132-40-69.eu-central-1.compute.internal            __        1.0       1.0           __    __
     └─ ip-10-132-41-138.eu-central-1.compute.internal           __        1.0       1.0           __    __
  ├─ cpu                                                       4.0m         __        __           __    __
  │  ├─ ip-10-132-39-85.eu-central-1.compute.internal          2.0m         __        __           __    __
  │  └─ ip-10-132-41-138.eu-central-1.compute.internal         2.0m         __        __           __    __
  ├─ memory                                                 251.3Mi         __        __           __    __
  │  ├─ ip-10-132-39-85.eu-central-1.compute.internal        79.7Mi         __        __           __    __

But namespace is display if namespaces is used in last group