Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ingress API is now GA with k8s 1.19 and no beta anymore #1330

Closed
@0asys

Description

@0asys

What happened (please include outputs or screenshots):
kubernetes client model does not find "V1/Ingress"

What you expected to happen:
v1/ingress works on k8s 1.19

How to reproduce it (as minimally and precisely as possible):
Use/Testing with #989 against k8s 1.19:

Lookup info: {'group': 'Networking', 'version': 'v1', 'kind': 'ingress', 'items_kind': None, 'fcn_to_call': 'NetworkingV1Api', 'fnc_lookup': None}
Traceback (most recent call last):
  File "k8s-loader.py", line 35, in <module>
    o = utils.load_from_dict(data=obj, verbose=True)
  File "/home/beni/.local/lib/python3.8/site-packages/kubernetes/utils/deserialize.py", line 279, in load_from_dict
    raise FailToLoadError(load_exceptions)
kubernetes.utils.deserialize.FailToLoadError:  reason: Failed to find a function to inspect; lookup info: {'group': 'Networking', 'version': 'v1', 'kind': 'ingress', 'items_kind': None, 'fcn_to_call': 'NetworkingV1Api', 'fnc_lookup': None}

Anything else we need to know?:

Environment:

  • Kubernetes version (kubectl version):
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:41:49Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
  • OS (e.g., MacOS 10.13.6): Linux
  • Python version (python --version) : Python 3.8.6
  • Python client version (pip list | grep kubernetes) : kubernetes 10.0.0-snapshot
    testing with Adding utils.deserialize #989

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions