We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799da98 commit a901798Copy full SHA for a901798
README.rst
@@ -62,6 +62,13 @@ Query for all ready pods in a custom namespace:
62
pods = pykube.Pod.objects(api).filter(namespace="gondor-system")
63
ready_pods = filter(operator.attrgetter("ready"), pods)
64
65
+Access any attribute of the Kubernetes object:
66
+
67
+.. code:: python
68
69
+ pod = pykube.Pod.objects(api).filter(namespace="gondor-system").get(name="my-pod")
70
+ pod.obj["spec"]["containers"][0]["image"]
71
72
Selector query:
73
74
.. code:: python
0 commit comments