# Functions

CreateSecret creates the Kubeconfig secret for the given cluster.
CreateSecretWithOwner creates the Kubeconfig secret for the given cluster name, namespace, endpoint, and owner reference.
FromEnvTestConfig returns a new Kubeconfig in byte form when running in envtest.
FromSecret fetches the Kubeconfig for a Cluster.
GenerateSecret returns a Kubernetes secret for the given Cluster and kubeconfig data.
GenerateSecretWithOwner returns a Kubernetes secret for the given Cluster name, namespace, kubeconfig data, and ownerReference.
NeedsClientCertRotation returns whether any of the Kubeconfig secret's client certificates will expire before the given threshold.
New creates a new Kubeconfig using the cluster name and specified endpoint.
RegenerateSecret creates and stores a new Kubeconfig in the given secret.

# Variables

ErrDependentCertificateNotFound signals that a CA secret could not be found.