Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to initialize V1beta1PodDisruptionBudgetStatus with returned Object PDB from K8S #460

Closed
azman0101 opened this issue Feb 15, 2018 · 1 comment

Comments

@azman0101
Copy link

I'm running kubernetes 1.6.7 which create that kind of PDB response:

    {
      "metadata": {
        "name": "myapp",
        "namespace": "mynamespace",
        "generation": 1,
        "creationTimestamp": "2018-02-14T10:04:15Z"
      },
      "spec": {
        "minAvailable": "100%",
        "selector": {
          "matchLabels": {
            "app": "pyapp",
            "release": "pyrelease"
          }
        }
      },
      "status": {
        "observedGeneration": 1,
        "disruptedPods": null,
        "disruptionsAllowed": 0,
        "currentHealthy": 0,
        "desiredHealthy": 0,
        "expectedPods": 0
      }
    },

Then, I encounter an error while using the documentation sample:
https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/PolicyV1beta1Api.md#list_pod_disruption_budget_for_all_namespaces

In fact, V1beta1PodDisruptionBudgetStatus instance initialization can't have a null/None value.

@mbohlool
Copy link
Contributor

dup of #376

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants