-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: 'object' while trying to get events for named Deployment #1484
Comments
cc @fabianvf |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'm seeing this same issue - the problem appears to be that the I think the
and don't pass |
What happened (please include outputs or screenshots):
I'm trying to get events on a specified resource with a specified name using DynamicClient and getting a KeyError if I specify a name of a resource (https://github.com/kubernetes-client/python-base/blob/b4d3aad42dc23e7a6c0e5c032691f8dc385a786c/dynamic/client.py#L153):
but everything is fine when I'm trying to get events without specifying a name (I have only one deployment in this namespace):
maybe I'm doing something wrong or I have a misunderstading of name parameter for a watch method?
What you expected to happen:
Get events for a resource with an exact name I provide with DynamicClient methods, because I want to pass a resorce class name within args for my app I'm writing:
source_api = dyn_client.resources.get(api_version="apps/v1", kind=args.source_kind)
where source_kind can be one of {DaemonSet,Deployment,ReplicaSet,StatefulSet}
How to reproduce it (as minimally and precisely as possible):
create some deployments in a namespace and try to get events with watch method of DynamicClient with a specified name of resource
Anything else we need to know?:
Environment:
Kubernetes version (
kubectl version
):Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4", GitCommit:"d360454c9bcd1634cf4cc52d1867af5491dc9c5f", GitTreeState:"clean", BuildDate:"2020-11-11T13:09:17Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
OS (e.g., MacOS 10.13.6):
Ubuntu 20.04.2 LTS
Python version (
python --version
)Python 3.8.5
Python client version (
pip list | grep kubernetes
)kubernetes 17.17.0
The text was updated successfully, but these errors were encountered: