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(kubernetes): correct handling of kubectl stderr #61

Merged
merged 1 commit into from
Aug 25, 2019
Merged

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Aug 25, 2019

A more sophisticated approach on #59 than #60 took.

Uses a custom regex middleware for the stderr stream to mute all exit status NUMBER outputs from kubectl in diff mode, but retains all other outputs.

Furthermore fixes a minor bug in error handling where a missing object was always reported as a secret.

Fixes #59
Closes #60

Always shows stderr from kubectl in case an error occurs
@sh0rez sh0rez added kind/bug Something isn't working component/kubernetes Working with Kubernetes clusters labels Aug 25, 2019
@sh0rez sh0rez merged commit df086de into master Aug 25, 2019
@sh0rez sh0rez deleted the diff-stderr branch August 25, 2019 11:27
@apelisse
Copy link

FYI: kubernetes/kubernetes#87437

@apelisse
Copy link

Since we'll be removing that stderr string altogether, I want to make sure you guys are aware before 1.18 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/kubernetes Working with Kubernetes clusters kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tk diff silently failing when ks diff works
3 participants