-
Notifications
You must be signed in to change notification settings - Fork 33
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
IEventClientV1 fails to convert time value #125
Comments
Hmm - I can have a crack at that this weekend I think - shouldn’t be too difficult 🙂 |
Hope to get this done on Sunday (tomorrow). |
Hey - I don’t have a working K8s install at the moment; are you able to try this out on the feature/micro-time-serialization branch? |
Hmm, is there any chance you could give me a nuget to try? |
Let me dig up the MyGet feed URL :) |
I'm still seeing the problem after building against these versions:
The error I'm seeing:
|
Ah. I suspect it’s because the converter doesn’t recognise the nullable version of the struct. Ok, I’ll try updating that first thing tomorrow morning and add a test for deserialisation. Are you able to post sample event JSON I can use? |
Indeed I can, here you go.
|
Thanks! Ok, have added a working test that verifies it can deserialise both nullable and non-nullable versions of https://travis-ci.org/github/tintoy/dotnet-kube-client/builds/726466033 (had to bypass a bit of yak-shaving along the way 😉) |
Excellent, that's seems to have fixed things. I am now able to view events as expected. Thank you so much! Can you let me know when this is available in the mainline release of the nugets? |
Great! Will do :) |
Published v2.3.14. |
Thanks a bunch for the help and quick turn-around! |
We recently upgraded our k8s clusters to v1.18.4 and some code I've used for many months has suddenly started throwing errors trying to deserialize datetime values from IEventClientV1.List(). I'm running v2.3.13 of KubeClient and v12.0.3 of Newtonsoft.Json. So I'm thinking something in v1.18 of k8s is serving up times in a format that is a problem. Exception and stack below.
Any thoughts on a solution?
Inner Exception:
The text was updated successfully, but these errors were encountered: