Skip to content
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

Simultaneously watch multiple event streams without threads. #13

Merged
merged 2 commits into from
Jun 9, 2018

Conversation

olitheolix
Copy link
Contributor

This PR demonstrates the use case I am most interested in. I know it is a simple extension of your example2, but this use case would be a lot less elegant with the original kubernetes library. Maybe you want to add it.

@@ -0,0 +1,38 @@
"""Watch multiple K8s event streams without threads."""
import asyncio
from kubernetes_asyncio import client, config, watch
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis is configured to run tests and check style of code. I know it's crazy... but he complains about a missing blank line here - between standard imports and local/library imports. Can you add this ?

Logs https://travis-ci.org/tomplus/kubernetes_asyncio/jobs/389560197
Status is presented on PR page and it's checked on every commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually ran flake8 before I submitted the PR and it passed :)

I now see this repo uses custom scripts to enforce the style checks. Do you know why?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied all scripts from the official python client (https://github.com/kubernetes-client/python) to make it as similar as possible to it.

@codecov-io
Copy link

codecov-io commented Jun 9, 2018

Codecov Report

Merging #13 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #13   +/-   ##
=======================================
  Coverage   92.53%   92.53%           
=======================================
  Files          14       14           
  Lines         898      898           
=======================================
  Hits          831      831           
  Misses         67       67

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57e7a28...1e8ff61. Read the comment docs.

@olitheolix olitheolix force-pushed the oli-multi-async-example branch from 0ca7918 to 1e8ff61 Compare June 9, 2018 00:16
@tomplus
Copy link
Owner

tomplus commented Jun 9, 2018

Thank you.

@tomplus tomplus merged commit 4c916f6 into tomplus:master Jun 9, 2018
@olitheolix olitheolix deleted the oli-multi-async-example branch June 24, 2018 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants