-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Description
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
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.