fix(rust): admin ssh not working
Merged
ER
1d ago+186+186+012345678901234567890123456789-32-32-01234567890123456789
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Fixes the admin SSH command in the Rust CLI, which was failing to fetch the kubeconfig and leaking the SSH tunnel past the shell session.
- Kubeconfig endpoints now send
Accept: application/x-yamlinstead ofapplication/json, avoiding406 Not Acceptablefrom the API. - The SSH bastion tunnel now uses
socks5h://so the bastion resolves host names instead of resolving them locally. - The tunnel is now closed when the admin shell exits, and killed automatically when the CLI exits or is terminated, matching the Go implementation's behavior.
- Adds exit hooks to the logging crate so all exit paths can run cleanup, and registers a
Pdeathsighandler on Linux.