kelproject / pykube

Python client library for Kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add status to Job objects

diegodelemos opened this issue · comments

commented

It would make sense to have available the status of a Job object since it is something which is run and it is expected to be completed at some point in time.
https://github.com/kelproject/pykube/blob/master/pykube/objects.py#L182-L195

commented

Solution, access directly to the json obj

>>> wq = pykube.Job.objects(api).filter(namespace=pykube.all).watch()
>>> for job in wq:                                                   
...     print(job[1].obj.get('status'))