You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with oc.tracking() as t, oc.timeout(30 * 60):
try:
with oc.project('my-project'):
apiobjects = oc.selector(['routes', 'services', 'configmaps']).objects()
for apiobject in apiobjects:
print(json.dumps(apiobject.model, indent=4, default=str))
except (ValueError, OpenShiftPythonException, Exception) as e:
traceback.print_exc()
logger.error("Tracking:\n{}\n\n".format(t.get_result().as_json(redact_streams=False)))
raise e
Thanks, I've come up with my own solution, a little ugly but it works.
Maybe adding more example, categorized by resources type will make the library more attrative to lazy dev (it's also the reason why I choose to use Python instead of making a bash script) :D
Please help, I don't see in your documentation mentioning these common resources.
The text was updated successfully, but these errors were encountered: