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

Getting error while running #1

Open
saurabh-tiket opened this issue Jun 3, 2023 · 0 comments
Open

Getting error while running #1

saurabh-tiket opened this issue Jun 3, 2023 · 0 comments

Comments

@saurabh-tiket
Copy link

I wanted to try this project, I did the installation part and am getting following error

(pod-usage) [  9:07PM ]  [ saurabhverma@theComputerman:~/Documents/Code/tiket/misc/gke-pod-usage(master✗) ]
 $ python3 pod_usage.py default
Traceback (most recent call last):
  File "/Users/saurabhverma/Documents/Code/tiket/misc/gke-pod-usage/pod_usage.py", line 116, in <module>
    main(ARGS.namespace)
  File "/Users/saurabhverma/Documents/Code/tiket/misc/gke-pod-usage/pod_usage.py", line 60, in main
    pods = formatted_pods(get_pods(kube, namespace))
  File "/Users/saurabhverma/Documents/Code/tiket/misc/gke-pod-usage/pod_usage.py", line 15, in get_pods
    return kube.list_pod_for_all_namespaces(field_selector='metadata.namespace=%s' % namespace,
  File "/Users/saurabhverma/Documents/Code/tiket/misc/virtual_environments/pod-usage/lib/python3.10/site-packages/kubernetes/client/api/core_v1_api.py", line 17309, in list_pod_for_all_namespaces
    return self.list_pod_for_all_namespaces_with_http_info(**kwargs)  # noqa: E501
  File "/Users/saurabhverma/Documents/Code/tiket/misc/virtual_environments/pod-usage/lib/python3.10/site-packages/kubernetes/client/api/core_v1_api.py", line 17370, in list_pod_for_all_namespaces_with_http_info
    raise ApiTypeError(
kubernetes.client.exceptions.ApiTypeError: Got an unexpected keyword argument 'include_uninitialized' to method list_pod_for_all_namespaces

Here is my kubenetes version

$ k version --output=yaml
clientVersion:
  buildDate: "2023-01-18T15:51:24Z"
  compiler: gc
  gitCommit: 8f94681cd294aa8cfd3407b8191f6c70214973a4
  gitTreeState: clean
  gitVersion: v1.26.1
  goVersion: go1.19.5
  major: "1"
  minor: "26"
  platform: darwin/arm64
kustomizeVersion: v4.5.7
serverVersion:
  buildDate: "2023-03-30T14:01:58Z"
  compiler: gc
  gitCommit: 4ac1389d4c3eefaabbd9fa31782fcbfd72e6e6e6
  gitTreeState: clean
  gitVersion: v1.25.8-gke.1000
  goVersion: go1.19.7 X:boringcrypto
  major: "1"
  minor: "25"
  platform: linux/amd64
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

1 participant