farmotive/kpoof

Allow providing Namespace, Pod-Number and Container-Number as parameter

doerler opened this issue · 3 comments

Hi,

it would be great if one could provide Namespace, Pod-Number and Container-Number (and context, if #16 gets implemented) via command line, like kpoof my-namespace 1 2. This would allow to create some shortcuts for frequently used pods.

Best regards
Andreas

So needed feature so far..

lypht commented

Context selection was fixed with v.3.1.0 (as of this writing, the github service degradation still had not shipped the binary to codeload.github.com. If impatient, one can always just clone the latest and alias...).

For the use case of frequent pod shortcuts, a concern is that pod rank and order are mutable, and can change without notice. For static deployments, this would not be an issue, but shortcuts becoming stale unknowingly can lead to disastrous results. I'll look at an optional flag for static pinning.

Would be great to use current context/namespace without asking as default behaviour. And add '--context' to set context if needed and the same with '--namespace'.