Add status to Job objects
diegodelemos opened this issue · comments
Diego 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
Diego 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'))