derailed / k9s

🐶 Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io
Apache License 2.0
26.6k stars 1.67k forks source link

Showing executed commands on action #1272

Open Leem0sh opened 2 years ago

Leem0sh commented 2 years ago




Is your feature request related to a problem? Please describe. Not really connected to a problem, it would just be nice to have for newbies like me and could be easy to implement.

Describe the solution you'd like I'm a newbie with k8s and k9s and I'd like to learn much more effectively than just running tru the biggy documentation. Basically what came in my mind is that I'd really enjoy knowing what command was executed on any action I make in k9s. For example looking into logs with k9s would somewhere print the kubectl logs ... command as it is (probably?) executed somewhere in the background. Having an option of seeing that would be great. I know it's not an alternative to the documentation but for learning kubernetes it feels like a nice way of getting some knowledge.

Thanks!

sandrorgguimaraes commented 2 years ago

Concordo com o @Leem0sh, além de auxiliar no aprendizado é uma forma de obtermos os comandos utilizados para alguma automação, enfim temos várias possibilidades de uso.

I agree with @Leem0sh, in addition to helping learning, it's a way to get the commands used for some automation, so we have several possibilities for use.

IvanBodnya commented 2 years ago

This would indeed be a great feature to have. Unfortunately, k9s does not use kubectl to interact with cluster. Instead, it makes use of https://github.com/kubernetes/client-go package. This package internally makes Rest API requests to k8s. So, it's not really straight forward to get "kubectl" commands as an output. Having said that, it would be great if we can get those logs, as it helps in learning k8s + you know exactly what k9s is doing behind the scenes. May be @derailed has some insights on how to approach this task?)

ewilazarus commented 1 year ago

Hey, people! Can I work on a PR for this? Are there any contributing guidelines?

IvanBodnya commented 1 year ago

@ewilazarus Yes, sure. Would be great, if you implement this feature! As for contributing guidelines - I've found only these https://github.com/derailed/k9s#contributions-guideline May be @derailed can give more info on this topic.