question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ApiextensionsV1Api missing

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
roycaihwcommented, 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

0reactions
k8s-ci-robotcommented, Sep 30, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found