8000 [discovery] Resource lookup is case-sensitive while it shouldn't · Issue #2402 · kubernetes-client/python · GitHub
[go: up one dir, main page]

Skip to content
[discovery] Resource lookup is case-sensitive while it shouldn't #2402
Open
@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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0