Documentation ¶
Overview ¶
Package k8sauth has helpers for authenticating to Kubernetes. This makes it easy to get a clientset, namespace information, etc. for both in-cluster and out-of-cluster auth.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clientset ¶
Clientset returns a K8S clientset and configured namespace. This will attempt to use in-cluster auth if available if kubeconfig is not explicitly specified. Otherwise, this will fall back to out of cluster auth.
func ClientsetInCluster ¶
ClientsetInCluster returns a K8S clientset and configured namespace for in-cluster usage.
func ClientsetOutOfCluster ¶
func ClientsetOutOfCluster(kubeconfig, context string) (*kubernetes.Clientset, string, *rest.Config, error)
ClientsetOutOfCluster loads a Kubernetes clientset using only a kubeconfig.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.