Versions in this module Expand all Collapse all v0 v0.2.1 Sep 5, 2024 v0.2.0 Jun 17, 2024 Changes in this version + const APIServerEtcdClient + const ClientClusterCA + const ClusterCA + const DefaultCertificatesDir + const EtcdCA + const FrontProxyCA + const Kubeconfig + const KubeconfigDataName + const ServiceAccount + const TLSCrtDataName + const TLSKeyDataName + var ErrMissingCertificate = errors.New("missing certificate") + var ErrMissingCrt = errors.New("missing crt data") + var ErrMissingData = errors.New("missing data") + var ErrMissingKey = errors.New("missing key data") + var ErrSecretInvalidSuffix = errors.New("not a valid cluster secret name") + func Get(ctx context.Context, c client.Reader, cluster client.ObjectKey, ...) (*corev1.Secret, error) + func GetFromNamespacedName(ctx context.Context, c client.Reader, clusterName client.ObjectKey, ...) (*corev1.Secret, error) + func Name(cluster string, suffix Purpose) string + type Certificate struct + CertFile string + External bool + Generated bool + KeyFile string + KeyPair *certs.KeyPair + Purpose Purpose + func (c *Certificate) AsFiles() []bootstrapv1.File + func (c *Certificate) AsSecret(clusterName client.ObjectKey, owner metav1.OwnerReference) *corev1.Secret + func (c *Certificate) Generate() error + func (c *Certificate) Hashes() ([]string, error) + type Certificates []*Certificate + func NewCertificatesForInitialControlPlane(config *bootstrapv1.KThreesConfigSpec) Certificates + func (c Certificates) AsFiles() []bootstrapv1.File + func (c Certificates) EnsureAllExist() error + func (c Certificates) Generate() error + func (c Certificates) GetByPurpose(purpose Purpose) *Certificate + func (c Certificates) Lookup(ctx context.Context, ctrlclient client.Client, clusterName client.ObjectKey) error + func (c Certificates) LookupOrGenerate(ctx context.Context, ctrlclient client.Client, clusterName client.ObjectKey, ...) error + func (c Certificates) SaveGenerated(ctx context.Context, ctrlclient client.Client, clusterName client.ObjectKey, ...) error + type Purpose string + func ParseSecretName(name string) (string, Purpose, error)