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

Surface Warning header #484

Open
cben opened this issue Dec 8, 2020 · 1 comment
Open

Surface Warning header #484

cben opened this issue Dec 8, 2020 · 1 comment

Comments

@cben
Copy link
Collaborator

cben commented Dec 8, 2020

Since 1.19, apiserver may set Warning: header on responses. https://kubernetes.io/blog/2020/09/03/warnings/

How may we expose it to callers?
NOT an exception, this is for stuff like deprecated APIs that however should still work.
The common use case is probably to log them, but should be customizable.
So, add a param to Client.new() specifying a callback / logger object?

@andrzej-stencel
Copy link
Contributor

Yes I agree, being able to log the warning to a user-provided logger instance sounds like a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants