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

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.

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