ApiextensionsV1Api missing
See original GitHub issueWhat 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
): serverv1.17.5
and clientv1.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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Developers - ApiextensionsV1Api missing - - Bountysource
Try and use ApiextensionsV1Api.get_api_resources() or any other function. Environment: Kubernetes version ( kubectl version ): server v1.17.5 ...
Read more >Lintian Runs for Package Sources - Debian
upstream-metadata-missing-repository [debian/upstream/metadata] ... 1444 > 512 [kubernetes/docs/ApiextensionsV1Api.md:374].
Read more >kubernetes/README.md · mirrors_ifduyue/python - Gitee.com
This Python package is automatically generated by the OpenAPI Generator project: API version: release-1.17; Package version: 17.0.0-snapshot; Build package: org ...
Read more >Deprecated API Migration Guide - Kubernetes
As the Kubernetes API evolves, APIs are periodically reorganized or upgraded. When APIs evolve, the old API is deprecated and eventually ...
Read more >io.kubernetes.client.openapi.ApiException Java Examples
... new ApiException("Missing the required parameter 'namespace' when calling ... Author: kubernetes-client File: ApiextensionsV1Api.java License: Apache ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
@roycaihw: 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.