mysql

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

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

	CredsMountPath = "/etc/mysql/mysql-users-secret"

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

Variables

This section is empty.

Functions

func AutoConfigMapName added in v0.2.0

func AutoConfigMapName(cr *apiv1alpha1.PerconaServerMySQL) string

func ConfigMapName

func ConfigMapName(cr *apiv1alpha1.PerconaServerMySQL) string

func ExecuteConfigurationTemplate added in v0.3.0

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

func FQDN added in v0.2.0

func GetAutoTuneParams added in v0.2.0

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

func MatchLabels

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

func PodName added in v0.2.0

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

func ServiceName

func ServiceName(cr *apiv1alpha1.PerconaServerMySQL) string

func StatefulSet

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

func UnreadyServiceName

func UnreadyServiceName(cr *apiv1alpha1.PerconaServerMySQL) string

Types

type Exposer added in v0.2.0

func (*Exposer) Exposed added in v0.2.0

func (e *Exposer) Exposed() bool

func (*Exposer) Labels added in v0.2.0

func (e *Exposer) Labels() 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 apiv1alpha1.SystemUser
	Password string
	Hosts    []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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