Versions in this module Expand all Collapse all v0 v0.2.0 Jun 17, 2024 Changes in this version + var ErrCAPrivateKeyNotFound = errors.New("CA private key not found") + var ErrCertNotInKubeconfig = errors.New("certificate not found in config") + var ErrDependentCertificateNotFound = errors.New("could not find secret ca") + func CreateSecret(ctx context.Context, c client.Client, cluster *clusterv1.Cluster) error + func CreateSecretWithOwner(ctx context.Context, c client.Client, clusterName client.ObjectKey, ...) error + func GenerateSecret(cluster *clusterv1.Cluster, data []byte) *corev1.Secret + func GenerateSecretWithOwner(clusterName client.ObjectKey, data []byte, owner metav1.OwnerReference) *corev1.Secret + func NeedsClientCertRotation(configSecret *corev1.Secret, threshold time.Duration) (bool, error) + func New(clusterName, endpoint string, clientCACert *x509.Certificate, ...) (*api.Config, error) + func RegenerateSecret(ctx context.Context, c client.Client, configSecret *corev1.Secret) error