You can list different kinds of object. The method names start with list_. Here is an example listing all namespaces:
>>> for ns in v1.list_namespace().items: ... print(ns.metadata.name) ... default kube-public kube-system
You can list different kinds of object. The method names start with list_. Here is an example listing all namespaces:
>>> for ns in v1.list_namespace().items: ... print(ns.metadata.name) ... default kube-public kube-system