Contextual namespace from input fails
lypht opened this issue · comments
First of all, kpoof
is working in primitive form. Woot!
But only for current namespace, and only with the existing port.
Steps to reproduce:
On the farmotive
cluster, kns
to a namespace with a mysql or mariadb pod. 365bass
or basekamp
are good options. Run ./kpoof
using enter
at the namespace selection, and the correct pod number (2 in both examples). You will have a port-forward instantiated at 3306.
Now ./kpoof
again, this time selecting the other namespace.
Expected Result: A successful Port forward.
Actual Result: Pod (Resource) not found => error.
I haven't solved for it yet, but I believe it is because $(po_select)
and $(po_port_sniff)
are asynchronous.