Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework pod-exec and node-exec #628

Merged
merged 2 commits into from
May 23, 2024
Merged

Rework pod-exec and node-exec #628

merged 2 commits into from
May 23, 2024

Conversation

HeavyWombat
Copy link
Member

@HeavyWombat HeavyWombat commented May 23, 2024

Drop the assumtion that Stdin and TTY is the default and let the user specify
the usage of Stdin redirect and TTY setup using command-line flags.

Deprecate the --no-tty flag.

Update the long description of both node-exec and pod-exec.

Fix the bug that pod exec didn't work through Teleport.

Refactored the command-line flag setup and handling.

Refactored the exec functions to accept config structs.

Fix issue with exec and TTY over teleport by making sure to not set stderr when using TTY for exec over teleport.

Drop the assumtion that Stdin and TTY is the default and let the user specify
the usage of Stdin redirect and TTY setup using command-line flags.

Deprecate the `--no-tty` flag.

Update the long description of both `node-exec` and `pod-exec`.

Fix the bug that pod exec didn't work through Teleport.

Refactored the command-line flag setup and handling.

Refactored the exec functions to accept config structs.
Make sure to not set stderr when using TTY for exec over teleport.
@HeavyWombat HeavyWombat changed the title rework/exec Rework pod-exec and node-exec May 23, 2024
Copy link

codecov bot commented May 23, 2024

Codecov Report

Attention: Patch coverage is 8.99471% with 172 lines in your changes are missing coverage. Please review.

Project coverage is 11.26%. Comparing base (405d2b4) to head (ddb4ed9).

Files Patch % Lines
pkg/havener/kubexec.go 0.00% 56 Missing ⚠️
internal/cmd/nexec.go 14.06% 55 Missing ⚠️
internal/cmd/pexec.go 16.21% 31 Missing ⚠️
pkg/havener/top.go 0.00% 12 Missing ⚠️
pkg/havener/logs.go 0.00% 10 Missing ⚠️
internal/cmd/common.go 0.00% 3 Missing ⚠️
pkg/havener/common.go 0.00% 3 Missing ⚠️
internal/cmd/events.go 0.00% 1 Missing ⚠️
pkg/havener/havener.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #628      +/-   ##
==========================================
+ Coverage   11.11%   11.26%   +0.14%     
==========================================
  Files          20       20              
  Lines        1881     1927      +46     
==========================================
+ Hits          209      217       +8     
- Misses       1668     1706      +38     
  Partials        4        4              
Flag Coverage Δ
unittests 11.26% <8.99%> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HeavyWombat HeavyWombat merged commit 2862a5f into main May 23, 2024
5 checks passed
@HeavyWombat HeavyWombat deleted the rework/exec branch May 23, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant