cert

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallTiDBCertificates

func InstallTiDBCertificates(ctx context.Context, c client.Client, ns, clusterName, tidbGroupName string) error

func InstallTiDBComponentsCertificates

func InstallTiDBComponentsCertificates(ctx context.Context, c client.Client, ns, clusterName string,
	pdGroupName, tikvGroupName, tidbGroupName, tiFlashGroupName, tiCDCGroupName, tiProxyGroupName string,
) error

func InstallTiDBIssuer

func InstallTiDBIssuer(ctx context.Context, c client.Client, ns, clusterName string) error

func InstallTiProxyCertificates

func InstallTiProxyCertificates(ctx context.Context, c client.Client, ns, clusterName, tiproxyGroupName string) error

TODO: refact to reduce duplicated code

func MySQLClient

func MySQLClient(clientCA, serverCertKeyPair string) (string, string)

MySQLClient returns ca and certKeyPair for a mysql client The input is ca and certKeyPair of the MySQL server

Types

type Factory

type Factory interface {
	Install(ctx context.Context, ns, cluster string) error
	Cleanup(ctx context.Context) error
}

Factory is used to create all certs of a cluster

func NewFactory

func NewFactory(c client.Client) Factory

type Secret

type Secret struct {
	Name string
	Keys []string
	Objs []*unstructured.Unstructured
}

func (*Secret) Equal

func (c *Secret) Equal(ac *Secret) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL