evanlucas / fish-kubectl-completions

kubectl completions for fish shell
MIT License
576 stars 42 forks source link

Ability to list the running containers within a pod when looking for logs #41

Open barnabasbusa opened 2 years ago

barnabasbusa commented 2 years ago

We should be able to list the different containers running within the same pod when looking for the log files.

kubectl logs control <TAB>

Should be able to list

kubectl logs control <TAB>

dns 
named 
nodemgr

Then you should be able to quickly jump through the different containers and select the one you looking for. This works well in zsh kubectl completion.

Control - pod name DNS, Named, Nodemgr - containers within Control pod