fix(rust): admin ssh not working

Merged
ER
1d ago
+186-32

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-yaml instead of application/json, avoiding 406 Not Acceptable from 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 Pdeathsig handler on Linux.