Skip to content

ApiextensionsV1Api missing #1172

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

Closed
ClaudiuLSH opened this issue May 27, 2020 · 8 comments
Closed

ApiextensionsV1Api missing #1172

ClaudiuLSH opened this issue May 27, 2020 · 8 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@ClaudiuLSH
Copy link

What happened (please include outputs or screenshots):

>>> client = kubernetes.client.ApiextensionsV1Api()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'kubernetes.client' has no attribute 'ApiextensionsV1Api'
>>> client = kubernetes.client.ApiextensionsV1beta1Api()
>>>

The file is missing:

# locate apiextensions_v1_api.py
# locate apiextensions_v1beta1_api.py
/usr/local/lib/python3.8/site-packages/kubernetes/client/api/apiextensions_v1beta1_api.py

What you expected to happen:
According to documentation there should be a ApiextensionsV1Api.

How to reproduce it (as minimally and precisely as possible):
Try and use ApiextensionsV1Api.get_api_resources() or any other function.

Environment:

  • Kubernetes version (kubectl version): server v1.17.5 and client v1.18.2
  • OS (e.g., MacOS 10.13.6): Linux
  • Python version (python --version): 3.8.3
  • Python client version (pip list | grep kubernetes): 11.0.0
@ClaudiuLSH ClaudiuLSH added the kind/bug Categorizes issue or PR as related to a bug. label May 27, 2020
@moshevayner
Copy link
Member

Yeah, looks like it's missing indeed.
I see it on master branch, but doesn't look like it exists on any of the release branches (checked 11.0 and 12.0).
Any idea about the reason, @roycaihw @palnabarun ?
If you have any pointers- I can take that issue and work on the fix.

@roycaihw
Copy link
Member

roycaihw commented Jun 9, 2020

ApiextensionsV1Api is introduced in Kubernetes 1.16. The 11.0.0 python client is generated against Kuberenetes 1.15 openapi spec so it doesn't have this API. The issue is we are in the middle of cutting a release (12.0.0a1), so the master branch contains a half-baked "snapshot" client, which contains documentation generated from 1.16 openapi. Once the new client is cut, the API will appear in pypi and in the release branch

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 7, 2020
@roycaihw
Copy link
Member

Closing as 12.0.0b1 has been released.

/close
/remove-lifecycle stale

@k8s-ci-robot
Copy link
Contributor

@roycaihw: Closing this issue.

In response to this:

Closing as 12.0.0b1 has been released.

/close
/remove-lifecycle stale

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.

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 30, 2020
@javiermarcon
Copy link

keeps happening on django-cloud-deploy 0.3.4 which is the version installed by pip

@aaron-michaux
Copy link

I just ran across this issue,

> pip list | grep kubetest
kubetest           0.9.5

> pip list | grep kubernetes
kubernetes         29.0.0

@leonpros
Copy link

I just ran across this issue,

> pip list | grep kubetest
kubetest           0.9.5

> pip list | grep kubernetes
kubernetes         29.0.0

having the same issue with the same versions + python 3.10.12
tried downgrading both kubetest and kubernetes, didn't work either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

8 participants