Skip to content

Kathara.manager.kubernetes.KubernetesConfig

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

module Kathara.manager.kubernetes.KubernetesConfig


class KubernetesConfig

Class responsible for loading Kubernetes configurations.


method KubernetesConfig.get_cluster_user

get_cluster_user() → str

Return the name of the current cluster user.

Returns:

  • str: The name of the current cluster user.

method KubernetesConfig.load_kube_config

load_kube_config() → None

Load the in-cluster config if launched on a master. Otherwise, setup the config for a remote master.

Returns: None

Raises:

  • ConnectionError: If there is an error while reading the Kubernetes configuration.

This file was automatically generated via lazydocs.

Clone this wiki locally