Skip to content

Conversation

tksm
Copy link
Contributor

@tksm tksm commented Apr 10, 2023

This PR allows an empty config file. Currently, stern fails as follows when the config file is empty. Please see go-yaml/yaml#639 for details.

$ touch /tmp/empty-sternconfig.yaml

$ dist/stern --config /tmp/empty-sternconfig.yaml .
Error: EOF
Usage:
  stern pod-query [flags]
# ...

Copy link
Member

@rkmathi rkmathi left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@tksm tksm merged commit c76ea87 into stern:master Apr 11, 2023
@tksm tksm deleted the allow-empty-config branch April 11, 2023 00:09
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.

3 participants