-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Compatibility issue between K8s v1.9 and python client v5.0 #484
Comments
I encount the same issue with you in k8s 1.9.3.
pip info as below
|
The problem is that API server returns 410 when the resource version is too old (
And the python client code tries to validate the error object as an event object, and reports a validation error. I would suggest that when API server responds with an error, we should raise it before parsing it into a regular API object. If you modify the parameter to be |
I used kubeadm to install a k8s cluster:
I used pip to install kubernetes python client version 5.0.
Per README, K8s python client v5.0 is compatible with K8s v1.9, but a simple program like the following doesn't work:
The error message I got is:
The text was updated successfully, but these errors were encountered: