-
Notifications
You must be signed in to change notification settings - Fork 3.3k
watch custom resources #1679
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
Comments
/assign |
I'd also like to have this behavior, but it seems like currently the Any update on this? @roycaihw 😃 |
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 |
/remove-lifecycle stale |
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 |
/remove-lifecycle stale |
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 |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Works like a charm with watch api from kubernetes import client, config, watch
config.load_incluster_config()
wa = watch.Watch()
co = client.CustomObjectsApi()
# list_namespaced_custom_object() has 4 required positional arguments: 'group', 'version', 'namespace', and 'plural'
# crontabs CR from here https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/
for ev in wa.stream(co.list_namespaced_custom_object,'stable.example.com','v1','default','crontabs'):
print(ev) |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues 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 according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". 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. |
What is the feature and why do you need it:
I am creating custom resources and want to open a watch to wait for a status on the resources.
Describe the solution you'd like to see:
I would like to be able to pass
client.CustomObjectsApi().get_namespaced_custom_object
to the stream method of Watch. Instead I get the errorGot an unexpected keyword argument 'watch' to method get_namespaced_custom_object
. This seems easier to add than the full informer model with #868 - an informer would be kind of heavy for what I'm trying to accomplish.The text was updated successfully, but these errors were encountered: