hubble observe does not work with stdin redirection #809
Labels
⌨️ area/cli
Impacts the command line interface of any command in the repository.
🐛 kind/bug
This is a bug in the Hubble logic.
Trying to avoid a useless use of cat I typed
hubble observe < cilium-55s8v-hubble_observe.json
, but was greeted with a crypticfailed to connect to 'localhost:4245': connection error: desc = "transport: error while dialing: dial tcp [::1]:4245: connect: connection refused"
. Typingcat cilium-55s8v-hubble_observe.json | hubble observe
worked fine.I'm guessing that the error stems from it trying and failing to connect to some cluster because tty detection (?) fails in this case. cc @gandro.
This happens both on zsh (5.8.1) and bash (5.2) on macOS Ventura 13.0 with hubble v0.10.0
The text was updated successfully, but these errors were encountered: