Documentation ¶
Index ¶
- Constants
- func AutoConfigMapName(cr *apiv1alpha1.PerconaServerMySQL) string
- func ConfigMapName(cr *apiv1alpha1.PerconaServerMySQL) string
- func FQDN(cr *apiv1alpha1.PerconaServerMySQL, idx int) string
- func GetAutoTuneParams(cr *apiv1alpha1.PerconaServerMySQL, q *resource.Quantity) (string, error)
- func HeadlessService(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
- func MatchLabels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
- func Name(cr *apiv1alpha1.PerconaServerMySQL) string
- func NamespacedName(cr *apiv1alpha1.PerconaServerMySQL) types.NamespacedName
- func PodFQDN(cr *apiv1alpha1.PerconaServerMySQL, pod *corev1.Pod) string
- func PodName(cr *apiv1alpha1.PerconaServerMySQL, idx int) string
- func PodService(cr *apiv1alpha1.PerconaServerMySQL, t corev1.ServiceType, podName string) *corev1.Service
- func ProxyService(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
- func ProxyServiceName(cr *apiv1alpha1.PerconaServerMySQL) string
- func ServiceName(cr *apiv1alpha1.PerconaServerMySQL) string
- func StatefulSet(cr *apiv1alpha1.PerconaServerMySQL, initImage, configHash, tlsHash string, ...) *appsv1.StatefulSet
- func UnreadyService(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
- func UnreadyServiceName(cr *apiv1alpha1.PerconaServerMySQL) string
- type Configurable
- func (c *Configurable) ExecuteConfigurationTemplate(input string, memory *resource.Quantity) (string, error)
- func (c *Configurable) GetConfigMapKey() string
- func (c *Configurable) GetConfigMapName() string
- func (c *Configurable) GetConfiguration() string
- func (c *Configurable) GetResources() corev1.ResourceRequirements
- type Exposer
- type User
Constants ¶
View Source
const ( ComponentName = "mysql" 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 = 6450 )
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 FQDN ¶ added in v0.2.0
func FQDN(cr *apiv1alpha1.PerconaServerMySQL, idx int) string
func GetAutoTuneParams ¶ added in v0.2.0
func GetAutoTuneParams(cr *apiv1alpha1.PerconaServerMySQL, q *resource.Quantity) (string, error)
func HeadlessService ¶
func HeadlessService(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
func MatchLabels ¶
func MatchLabels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
func Name ¶
func Name(cr *apiv1alpha1.PerconaServerMySQL) string
func NamespacedName ¶
func NamespacedName(cr *apiv1alpha1.PerconaServerMySQL) types.NamespacedName
func PodFQDN ¶ added in v0.8.0
func PodFQDN(cr *apiv1alpha1.PerconaServerMySQL, pod *corev1.Pod) string
func PodName ¶ added in v0.2.0
func PodName(cr *apiv1alpha1.PerconaServerMySQL, idx int) string
func PodService ¶
func PodService(cr *apiv1alpha1.PerconaServerMySQL, t corev1.ServiceType, podName string) *corev1.Service
func ProxyService ¶ added in v0.6.0
func ProxyService(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
func ProxyServiceName ¶ added in v0.6.0
func ProxyServiceName(cr *apiv1alpha1.PerconaServerMySQL) string
func ServiceName ¶
func ServiceName(cr *apiv1alpha1.PerconaServerMySQL) string
func StatefulSet ¶
func StatefulSet(cr *apiv1alpha1.PerconaServerMySQL, initImage, configHash, tlsHash string, secret *corev1.Secret) *appsv1.StatefulSet
func UnreadyService ¶
func UnreadyService(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
func UnreadyServiceName ¶
func UnreadyServiceName(cr *apiv1alpha1.PerconaServerMySQL) string
Types ¶
type Configurable ¶ added in v0.6.0
type Configurable apiv1alpha1.PerconaServerMySQL
func (*Configurable) ExecuteConfigurationTemplate ¶ added in v0.6.0
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 apiv1alpha1.PerconaServerMySQL
func (*Exposer) SaveOldMeta ¶ added in v0.4.0
type User ¶
type User struct { Username apiv1alpha1.SystemUser Password string Hosts []string }
Click to show internal directories.
Click to hide internal directories.