package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

ClientSetFromFile returns a ready-to-use client from a kubeconfig file.
CreateBasic creates a basic, general KubeConfig object that then can be extended.
CreateWithCerts creates a KubeConfig object with access to the API server with client certificates.
CreateWithToken creates a KubeConfig object with access to the API server with a token.
EnsureAuthenticationInfoAreEmbedded check if some authentication info are provided as external key/certificate files, and eventually embeds such files into the kubeconfig file.
EnsureCertificateAuthorityIsEmbedded check if the certificate authority is provided as an external file and eventually embeds it into the kubeconfig.
GetClusterFromKubeConfig returns the default Cluster of the specified KubeConfig.
HasAuthenticationCredentials returns true if the current user has valid authentication credentials for token authentication, basic authentication or X509 authentication.
ToClientSet converts a KubeConfig object to a client.
WriteToDisk writes a KubeConfig object down to disk with mode 0600.