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

k8s: don't drop stdout of kubectl exec #2332

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

bimmlerd
Copy link
Member

A non-empty stderr is interpreted as a command failure. However, calling code still assumes the output it gets is the output of the command, whereas we currently just return a pristine buffer.

Fix it by returning the buffer.

An example of why this is annoying: https://github.com/cilium/cilium/actions/runs/8043919487/job/21966754656#step:17:328

A non-empty stderr is interpreted as a command failure. However, calling
code still assumes the output it gets is the output of the command,
whereas we currently just return a pristine buffer.

Fix it by returning the buffer.

Signed-off-by: David Bimmler <[email protected]>
Copy link
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

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

😇

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Feb 27, 2024
@joamaki joamaki merged commit 4628f7a into main Feb 27, 2024
13 checks passed
@joamaki joamaki deleted the pr/bimmlerd/fix-output-printing-of-exec-actions branch February 27, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants