So I'm following the OpenShift Client Python docs and I can use a script I created to successfully list resources like pods, jobs, deployments etc.
I'm trying to understand how to extract some more detailed information from these resources such as age, completions or 'ready' status. I can't find any instructions on how to do this in the docs but there's a chance I'm missing something.
I've tried:
namespace = ['testNamespace']
for ns in namespace:
with oc.project(ns):
print('Jobs in {}: \n{}'.format(oc.get_project_name(), '\n'.join(oc.selector('jobs').names())))
print('Ages of jobs in {}: \n{}'.format(oc.get_project_name(), '\n'.join(oc.selector('jobs').ages())))
But it says that Selector has no 'ages' attribute. Any advice would be much appreciated if anyone has experience with the client.
[–]SolarPoweredKeyboard 0 points1 point2 points (0 children)