Skip to content

Calling NetworkingV1Api().list_namespaced_ingress(namespace=namespace) raises 404 error instead of empty list #1723

@ckkz-it

Description

@ckkz-it

What happened (please include outputs or screenshots):
The call to method list_namespaced_ingress() of NetworkingV1Api is raising 404 error.
image

What you expected to happen:
It should return an empty list, as other list methods do (e.g. list_namespaced_config_map, list_namespaced_deployment, list_namespaced_horizontal_pod_autoscaler, etc)

How to reproduce it (as minimally and precisely as possible):
Call NetworkingV1Api().list_namespaced_ingress(namespace=...) for a namespace that doesn't have ingresses. In my case, it was the default namespace.

Anything else we need to know?:
Running inside GitHub Actions.

Environment:

  • Kubernetes version (kubectl version): -
  • OS (e.g., MacOS 10.13.6): Ubuntu 20.04
  • Python version (python --version): 3.10.2
  • Python client version (pip list | grep kubernetes): 21.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions