Open stepanselyuk opened 3 years ago
Hello,
https://github.com/jordanwilson230/kubectl-plugins/blob/98ee1158cb6c5952f3f6760ebd462dd2dc41abad/kubectl-exec-as#L88
Locally I modified it as:
test "$(exec "${KUBECTL}" get po "$(whoami|tr '[:upper:]' '[:lower:]'|tr -dc '[:alnum:]')-1" 2>/dev/null)" && container="$(whoami|tr '[:upper:]' '[:lower:]'|tr -dc '[:alnum:]')-2" || container="$(whoami|tr '[:upper:]' '[:lower:]'|tr -dc '[:alnum:]')-1"
@stepanselyuk nice catch! As soon as I have time, I'll create a PR to test and merge your change in. Thanks!
This has not been fixed yet
Hello,
https://github.com/jordanwilson230/kubectl-plugins/blob/98ee1158cb6c5952f3f6760ebd462dd2dc41abad/kubectl-exec-as#L88
Locally I modified it as: