-
-
Notifications
You must be signed in to change notification settings - Fork 73
Kathara.manager.kubernetes.KubernetesNamespace
Tommaso Caiazzi edited this page Jan 8, 2025
·
9 revisions
Class responsible for interacting with Kubernetes namespaces.
__init__() → Nonecreate(
lab: Kathara.model.Lab.Lab
) → Optional[kubernetes.client.models.v1_namespace.V1Namespace]Create a Kubernetes namespace for a Kathara network scenario.
Args:
-
lab(Kathara.model.Lab.Lab): A Kathara network scenario.
Returns:
-
Optional[client.V1Namespace]: The Kubernetes namespace for the network scenario.
get_all() → Iterable[kubernetes.client.models.v1_namespace.V1Namespace]Return an Iterable containing all the Kubernetes namespaces related to Kathara.
Returns:
-
Iterable[client.V1Namespace]: an Iterable containing all the Kubernetes namespaces related to Kathara.
get_namespace(
lab_hash: str
) → Optional[kubernetes.client.models.v1_namespace.V1Namespace]Return an Iterable containing all the Kubernetes namespaces related to Kathara.
Returns:
-
Iterable[client.V1Namespace]: an Iterable containing all the Kubernetes namespaces related to Kathara.
undeploy(lab_hash: str = None) → NoneDelete the Kubernetes namespace corresponding to the lab_hash.
Args:
-
lab_hash(str): The hash of a Kathara network scenario.
Returns: None
wipe() → NoneDelete all the Kathara Kubernetes namespaces.
Returns: None
This file was automatically generated via lazydocs.
Website: kathara.org
Contact us: [email protected]