NimbleArchitect / kubectl-ice

Kubectl-ice is an open-source tool for Kubernetes users to monitor and optimize container resource usage. Features include usage breakdowns for pods and containers, making scaling and optimization easier. The tool is compatible with major cloud providers and is actively developed by a community of contributors
Apache License 2.0
247 stars 9 forks source link

ice ip doesn't honor args #19

Closed dmitry-mightydevops closed 6 months ago

dmitry-mightydevops commented 7 months ago

hi @NimbleArchitect

issue one trying to find by IP addr

✗  k ice ip -m ip==10.110.5.20 
NAME                                 IP
staging-psql-0               10.110.5.20
staging-psql-port-forward-0  10.110.5.17

-T

➜ k ice ip -T
NAME                                 IP
staging-psql-0               10.110.5.20
staging-psql-port-forward-0  10.110.5.17

others

➜ k ice ip --show-namespace --show-node --show-type
NAME                                 IP
staging-psql-0               10.110.5.20
staging-psql-port-forward-0  10.110.5.17
dmitry-mightydevops commented 7 months ago
➜ k ice version                                     
kubectl-ice kubernetes container viewer

version 0.2.11
NimbleArchitect commented 7 months ago

@dmitry-mightydevops yeah it's bug, it actually appears like the match flag doesn't work for the ip or the name columns. I'll have a look soon as I probably missed something silly.

Thanks for raising it

NimbleArchitect commented 6 months ago

Took me a while but the ip command has now been updated, I also added a --show-ip flag to the ports command while I was at it

see release v0.2.12: https://github.com/NimbleArchitect/kubectl-ice/releases/tag/v0.2.12

dmitry-mightydevops commented 6 months ago

perfect, worked like a charm!