Kathara.manager.kubernetes.KubernetesNamespace - KatharaFramework/Kathara GitHub Wiki

module Kathara.manager.kubernetes.KubernetesNamespace


class KubernetesNamespace

Class responsible for interacting with Kubernetes namespaces.

method KubernetesNamespace.__init__

__init__() → None

method KubernetesNamespace.create

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.

method KubernetesNamespace.get_all

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.

method KubernetesNamespace.get_namespace

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.

method KubernetesNamespace.undeploy

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


method KubernetesNamespace.wipe

wipe() → None

Delete all the Kathara Kubernetes namespaces.

Returns: None


This file was automatically generated via lazydocs.

⚠️ **GitHub.com Fallback** ⚠️