Closed dippynark closed 6 years ago
I think I found the bug. It seems like it's cleaning up the tunnel before executing kubectl:
https://github.com/jetstack/tarmak/blob/master/pkg/tarmak/kubectl/kubectl.go#L139
It was always doing that, but before the cleanup of the tunnel was not working.
I gess we needs to have a cleanUp boolean param or even a stopChannel somwhere around here:
https://github.com/jetstack/tarmak/blob/master/pkg/tarmak/kubectl/kubectl.go#L194
And then this only needs to happen after kubectl has been executed
/assign @dippynark
/kind bug
What happened: Created a cluster following the sequence of steps as described here and ran
tarmak kubectl get nodes
but received the following output:What you expected to happen: To see the list of cluster nodes
How to reproduce it (as minimally and precisely as possible): Run:
Anything else we need to know?: I am working from my own fork of the code (https://github.com/dippynark/tarmak/tree/67-add-pod-security-policies) compiled on OS X
Environment:
kubectl version
):tarmak kubectl version
has the same issue, but outside of tarmak: