Skip to content

Kathara.manager.kubernetes.KubernetesConfig

Tommaso Caiazzi edited this page Sep 30, 2022 · 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 main. Otherwise, setup the config for a remote main.

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