Get the current config path. If the KUBECONFIG environment 
    parameter is set, use it. If multiple paths are listed in 
    KUBECONFIG, use the first path.

def get_kube_path():
    """Get the current config path. If the KUBECONFIG environment 
    parameter is set, use it. If multiple paths are listed in 
    KUBECONFIG, use the first path.
    """
    try:
        path = pathlib.Path(os.environ["KUBECONFIG"].split(':')[0])
    except KeyError:
        path = pathlib.Path.home().joinpath('.kube', 'config')
    return path