-
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
V1beta1PodDisruptionBudget deserialization should not throw exception on V1beta1PodDisruptionBudgetStatus #466
Comments
got the same issue... |
Can we fix this during waiting of fixes in Kuberentes? I can't create proper logic of recreating PDB due to unable to get it. |
same here, just ran in to this trying to automate some creation of PdB's |
this is a vendored version of the code at https://github.com/kubernetes-client/python/blob/master/kubernetes/client/api_client.py we've vendored it so that we can patch the client and get round kubernetes-client/python#466 - the patch prevents an unnecessary check on whether the disruptedpods param passed to the constructor of V1beta1PodDisruptionBudgetStatus is None (see the issue comments for confirmation). I've also made some changes for py3 compatibility
Any idea when this issue will be solved ? |
workaround from #466 (comment) works also with all objects created from python client needed for |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
create_namespaced_pod_disruption_budget, patch_namespaced_pod_disruption_budget and list_namespaced_pod_disruption_budget throws ValueError("Invalid value for
disrupted_pods
, must not beNone
") because it tries to deserialize V1beta1PodDisruptionBudgetStatus model where disruptedPods is mandatory field..However for V1beta1PodDisruptionBudget object status is optional and not relevant for an example for just created object. Also in V1beta1PodDisruptionBudgetStatus "disruptedPods: null" is valid value
The text was updated successfully, but these errors were encountered: