Skip to content

[discovery] Resource lookup is case-sensitive while it shouldn't #2402

@Jean-Daniel

Description

@Jean-Daniel

What happened (please include outputs or screenshots):

The following code fails with a resource not found error.

kubernetes.config.load_kube_config()
with kubernetes.client.ApiClient() as client:
  v1 = kubernetes.dynamic.DynamicClient(client)
  rsrc = v1.resources.get(kind='service')

What you expected to happen:

That it returns the Service resource, just like Kubernetes API and kubectl does.

How to reproduce it (as minimally and precisely as possible):

Run the above snippet

Metadata

Metadata

Assignees

No one assigned

    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