book-of-kubernetes / examples

Examples for The Book of Kubernetes
MIT License
146 stars 71 forks source link

Ch 17 Watch Script #34

Open matthoff11 opened 8 months ago

matthoff11 commented 8 months ago

https://github.com/book-of-kubernetes/examples/blob/main/chapter-17/files/watch.py

Bad spacing at the end of the file:


for event in w.stream(api.list_namespaced_custom_object,
        group=group, version=version, namespace=namespace, plural=resource):
          json.dump(event, sys.stdout, indent=2)
          sys.stdout.flush()