kubel icon indicating copy to clipboard operation
kubel copied to clipboard

Prompt for a specific container in multi-container pods on exec

Open ifitzpat opened this issue 2 years ago • 0 comments

Hi @abrochard,

This PR adds the ability to choose a specific container when doing an exec (using kubernetes-tramp) into a multi-container pod instead of using the default container. It effectively adds "-c containername" to the kubectl arguments where containername is filled in based on a completing read with a list of available containers. If the pod is a single-container pod the only available container is chosen without the call to completing-read.

ifitzpat avatar Jan 16 '22 08:01 ifitzpat