Kathara.manager.kubernetes.KubernetesNamespace - KatharaFramework/Kathara GitHub Wiki
Class responsible for interacting with Kubernetes namespaces.
__init__() → None
create(
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) → None
Delete the Kubernetes namespace corresponding to the lab_hash.
Args:
-
lab_hash
(str): The hash of a Kathara network scenario.
Returns: None
wipe() → None
Delete all the Kathara Kubernetes namespaces.
Returns: None
This file was automatically generated via lazydocs.