How do I know if certain calls made using python k8s client are blocking or non-blocking?


#1

Example creation of namespace. How do I know if the below is going to make a blocking or non-blocking call? Basically async or sync operation?

v1 = client.CoreV1Api()
body = client.V1Namespace(metadata=client.V1ObjectMeta(name=namespace_name))
include_uninitialized = True
pretty = "true"
try:
    api_response = v1.create_namespace(body, pretty=pretty)
    pprint(api_response)
    return api_response
except Exception as e:
    raise e