mysql

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AppName         = "mysql"
	DataVolumeName  = "datadir"
	DataMountPath   = "/var/lib/mysql"
	CustomConfigKey = "my.cnf"

	CustomMyCnfPath = "/etc/mysql/config/my-config.cnf"

	BackupLogDir = "/var/log/xtrabackup"
)
View Source
const (
	DefaultPort      = 3306
	DefaultGRPort    = 33061
	DefaultAdminPort = 33062
	DefaultXPort     = 33060
	SidecarHTTPPort  = 6450

	DefaultReadTimeoutSecondsSeconds  = 3600
	DefaultCloneTimeoutSecondsSeconds = 3600

	DefaultAsyncSourceRetryCount   = 3
	DefaultAsyncSourceConnectRetry = 60
)

Variables

View Source
var (
	ErrNoReadyPods = errors.New("no ready pods")
)

Functions

func AutoConfigMapName added in v0.2.0

func AutoConfigMapName(cr *apiv1.PerconaServerMySQL) string

func ConfigMapName

func ConfigMapName(cr *apiv1.PerconaServerMySQL) string

func FQDN added in v0.2.0

func FQDN(cr *apiv1.PerconaServerMySQL, idx int) string

func GetAutoTuneParams added in v0.2.0

func GetAutoTuneParams(cr *apiv1.PerconaServerMySQL, q *resource.Quantity) (string, error)

func GetPod added in v0.12.0

func GetPod(ctx context.Context, cl client.Reader, cr *apiv1.PerconaServerMySQL, idx int) (*corev1.Pod, error)

func GetReadyPod added in v0.12.0

func GetReadyPod(ctx context.Context, cl client.Reader, cr *apiv1.PerconaServerMySQL) (*corev1.Pod, error)

func HeadlessService

func HeadlessService(cr *apiv1.PerconaServerMySQL) *corev1.Service

func Labels added in v0.12.0

func Labels(cr *apiv1.PerconaServerMySQL) map[string]string

func MatchLabels

func MatchLabels(cr *apiv1.PerconaServerMySQL) map[string]string

func Name

func PodFQDN added in v0.8.0

func PodFQDN(cr *apiv1.PerconaServerMySQL, pod *corev1.Pod) string

func PodName added in v0.2.0

func PodName(cr *apiv1.PerconaServerMySQL, idx int) string

func PodService

func PodService(cr *apiv1.PerconaServerMySQL, t corev1.ServiceType, podName string) *corev1.Service

func PrimaryService

func PrimaryService(cr *apiv1.PerconaServerMySQL) *corev1.Service

PrimaryService constructs a service which exposes the pods that has the primary label. For now this service should be available only for group replication.

func PrimaryServiceName

func PrimaryServiceName(cr *apiv1.PerconaServerMySQL) string

func ProxyService added in v0.6.0

func ProxyService(cr *apiv1.PerconaServerMySQL) *corev1.Service

func ProxyServiceName added in v0.6.0

func ProxyServiceName(cr *apiv1.PerconaServerMySQL) string

func ServiceName

func ServiceName(cr *apiv1.PerconaServerMySQL) string

func StatefulSet

func StatefulSet(cr *apiv1.PerconaServerMySQL, initImage, configHash, tlsHash string, secret *corev1.Secret) *appsv1.StatefulSet

func UnreadyService

func UnreadyService(cr *apiv1.PerconaServerMySQL) *corev1.Service

func UnreadyServiceName

func UnreadyServiceName(cr *apiv1.PerconaServerMySQL) string

Types

type Component added in v0.12.0

type Component apiv1.PerconaServerMySQL

func (*Component) Labels added in v0.12.0

func (c *Component) Labels() map[string]string

func (*Component) MatchLabels added in v0.12.0

func (c *Component) MatchLabels() map[string]string

func (*Component) Name added in v0.12.0

func (c *Component) Name() string

func (*Component) Object added in v0.12.0

func (c *Component) Object(ctx context.Context, cl client.Client) (client.Object, error)

func (*Component) PerconaServerMySQL added in v0.12.0

func (c *Component) PerconaServerMySQL() *apiv1.PerconaServerMySQL

func (*Component) PodSpec added in v0.12.0

func (c *Component) PodSpec() *apiv1.PodSpec

type Configurable added in v0.6.0

type Configurable apiv1.PerconaServerMySQL

func (*Configurable) ExecuteConfigurationTemplate added in v0.6.0

func (c *Configurable) ExecuteConfigurationTemplate(input string, memory *resource.Quantity) (string, error)

func (*Configurable) GetConfigMapKey added in v0.6.0

func (c *Configurable) GetConfigMapKey() string

func (*Configurable) GetConfigMapName added in v0.6.0

func (c *Configurable) GetConfigMapName() string

func (*Configurable) GetConfiguration added in v0.6.0

func (c *Configurable) GetConfiguration() string

func (*Configurable) GetResources added in v0.6.0

func (c *Configurable) GetResources() corev1.ResourceRequirements

type Exposer added in v0.2.0

type Exposer apiv1.PerconaServerMySQL

func (*Exposer) Exposed added in v0.2.0

func (e *Exposer) Exposed() bool

func (*Exposer) MatchLabels added in v0.12.0

func (e *Exposer) MatchLabels() map[string]string

func (*Exposer) Name added in v0.2.0

func (e *Exposer) Name(index string) string

func (*Exposer) SaveOldMeta added in v0.4.0

func (e *Exposer) SaveOldMeta() bool

func (*Exposer) Service added in v0.2.0

func (e *Exposer) Service(name string) *corev1.Service

func (*Exposer) Size added in v0.2.0

func (e *Exposer) Size() int32

type User

type User struct {
	Username apiv1.SystemUser
	Password string
	Hosts    []string
}

Jump to

Keyboard shortcuts

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