crate.operator.kube_auth module

async crate.operator.kube_auth.login_via_kubernetes_asyncio(logger, **kwargs)

Authenticate with the Kubernetes cluster.

Upon startup of the Kopf operator, this function attempts to authenticate with a Kubernetes cluster. If the KUBECONFIG is defined, an attempt will be made to use that config file. In other cases, an in-cluster authentication will be tried.

Parameters
Return type

ConnectionInfo