Kathara.manager.kubernetes.KubernetesConfigMap - KatharaFramework/Kathara GitHub Wiki
- MAX_FILE_SIZE
Class responsible for interacting with Kubernetes ConfigMap.
__init__() → None
build_name_for_machine(machine_name: str, machine_namespace: str) → str
Return the name for the Kubernetes deployment.
Args:
-
machine_name
(str): The name of a Kathara device. -
machine_namespace
(str): the name of the namespace the device belongs to.
Returns:
-
str
: The name for the ConfigMap in the format '|machine_name|-|machine_namespace|-files'.
delete_for_machine(machine_name: str, machine_namespace: str) → None
Delete the Kubernetes ConfigMap associated with the device, if it exists.
Args:
-
machine_name
(str): The name of a Kathara device. -
machine_namespace
(str): the name of the namespace the device belongs to.
Returns: None
deploy_for_machine(
machine: Kathara.model.Machine.Machine
) → Optional[kubernetes.client.models.v1_config_map.V1ConfigMap]
Deploy and return a Kubernetes ConfigMap for the device.
Args:
-
machine
(Kathara.model.Machine.Machine): A Kathara device.
Returns:
-
Optional[client.V1ConfigMap]
: A Kubernetes ConfigMap.
This file was automatically generated via lazydocs.