kelproject / pykube

Python client library for Kubernetes
Apache License 2.0
349 stars 183 forks source link

Add example for getting attribute of object #126

Closed jml closed 7 years ago

jml commented 7 years ago

The README doesn't say how to access information about the objects returned by queries. It really should.

jml commented 7 years ago

As best as I can tell, the secret magic word is .obj, e.g.

ip = pod.obj['status']['podIP']