Skip to content

Kathara.manager.kubernetes.KubernetesConfigMap

Tommaso Caiazzi edited this page Jul 21, 2023 · 10 revisions

module Kathara.manager.kubernetes.KubernetesConfigMap

Global Variables

  • MAX_FILE_SIZE

class KubernetesConfigMap

Class responsible for interacting with Kubernetes ConfigMap.

method KubernetesConfigMap.__init__

__init__() → None

method KubernetesConfigMap.build_name_for_machine

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'.

method KubernetesConfigMap.delete_for_machine

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


method KubernetesConfigMap.deploy_for_machine

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.

Clone this wiki locally