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

Fix interactivity in auth exec #1083

Merged
merged 5 commits into from
Dec 10, 2022

Conversation

armandpicard
Copy link
Contributor

Signed-off-by: armandpicard armandpicard71@gmail.com

Motivation

Adding support for interactivity in auth exec and putting this information to the executed programs is needed; especialy on Windows (#1046 ).

Solution

I've added simple support for interactiveMode by giving parent process stdin to child process if needed and give information about interactivity with the KUBERNETES_EXEC_INFO env variable.

Signed-off-by: armandpicard <armandpicard71@gmail.com>
Signed-off-by: armandpicard <armandpicard71@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2022

Codecov Report

Merging #1083 (8eee3ce) into main (cde4530) will decrease coverage by 0.20%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1083      +/-   ##
==========================================
- Coverage   72.67%   72.47%   -0.21%     
==========================================
  Files          65       65              
  Lines        4835     4847      +12     
==========================================
- Hits         3514     3513       -1     
- Misses       1321     1334      +13     
Impacted Files Coverage Δ
kube-client/src/client/auth/mod.rs 52.70% <0.00%> (-3.32%) ⬇️
kube-client/src/config/file_config.rs 75.75% <ø> (ø)
kube-client/src/config/mod.rs 44.82% <ø> (ø)
kube-runtime/src/wait.rs 75.47% <0.00%> (-1.89%) ⬇️

Copy link
Member

@clux clux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks a lot! Leaving it open for comments for a bit.

kube-client/src/config/file_config.rs Show resolved Hide resolved
kube-client/src/config/file_config.rs Show resolved Hide resolved
@clux clux added the changelog-add changelog added category for prs label Nov 17, 2022
@clux clux added this to the 0.77.0 milestone Nov 17, 2022
@clux
Copy link
Member

clux commented Dec 10, 2022

Merging this, it's a clean non-breaking change judging by the Command docs. Sorry for the delay, and thanks for the contribution!

@clux clux merged commit dffdbb0 into kube-rs:main Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-add changelog added category for prs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants