import yaml


def get_current_context_name(kube_config) -> str:
    """
    Get current-context from kubeconfig.

    :param kube_config: absolute path to kubeconfig
    :return: str
    """
    with open(kube_config) as conf:
        dep = yaml.safe_load(conf)
        return dep['current-context']