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

AppsV1Api().list_stateful_set_for_all_namespaces() => ValueError #659

Closed
blazehu opened this issue Oct 23, 2018 · 1 comment
Closed

AppsV1Api().list_stateful_set_for_all_namespaces() => ValueError #659

blazehu opened this issue Oct 23, 2018 · 1 comment

Comments

@blazehu
Copy link

blazehu commented Oct 23, 2018

from kubernetes import client
client.AppsV1Api().list_stateful_set_for_all_namespaces()

File "/Users/huyuhan/Projects/cmdb-sync/k8s/client.py", line 236, in analyze_sts_for_all_namespaces ret_sts = self.sts_api.list_stateful_set_for_all_namespaces() File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/apis/apps_v1_api.py", line 3137, in list_stateful_set_for_all_namespaces (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/apis/apps_v1_api.py", line 3234, in list_stateful_set_for_all_namespaces_with_http_info collection_formats=collection_formats) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 321, in call_api _return_http_data_only, collection_formats, _preload_content, _request_timeout) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 163, in __call_api return_data = self.deserialize(response_data, response_type) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 236, in deserialize return self.__deserialize(data, response_type) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize return self.__deserialize_model(data, klass) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 620, in __deserialize_model kwargs[attr] = self.__deserialize(value, attr_type) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 254, in __deserialize for sub_data in data] File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize return self.__deserialize_model(data, klass) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 620, in __deserialize_model kwargs[attr] = self.__deserialize(value, attr_type) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize return self.__deserialize_model(data, klass) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 620, in __deserialize_model kwargs[attr] = self.__deserialize(value, attr_type) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize return self.__deserialize_model(data, klass) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 620, in __deserialize_model kwargs[attr] = self.__deserialize(value, attr_type) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 276, in __deserialize return self.__deserialize_model(data, klass) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/api_client.py", line 622, in __deserialize_model instance = klass(**kwargs) File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/models/v1_pod_spec.py", line 136, in __init__ self.containers = containers File "/Users/huyuhan/.pyenv/versions/cmdb-sync/lib/python2.7/site-packages/kubernetes/client/models/v1_pod_spec.py", line 276, in containers raise ValueError("Invalid value forcontainers, must not be None") ValueError: Invalid value for containers, must not be None``

@tomplus
Copy link
Member

tomplus commented Oct 24, 2018

It's probably related to kubernetes-client/gen#52

@blazehu blazehu closed this as completed Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants