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

kubectl warnings break check_kubernetes #19

Open
ebourg opened this issue Nov 19, 2020 · 0 comments
Open

kubectl warnings break check_kubernetes #19

ebourg opened this issue Nov 19, 2020 · 0 comments

Comments

@ebourg
Copy link
Contributor

ebourg commented Nov 19, 2020

kubectl prints warnings that are prepended to the JSON message returned by the getJSON() function, for example:

 Throttling request took 1.50705208s, request: GET:<URL>

This breaks the parsing of the message and the check fails.

I worked around this issue by adding --v=1 when calling kubectl. If it's possible if would be nice to separate the warning from the JSON message and print it to the output.

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

No branches or pull requests

1 participant