Documentation
¶
Index ¶
- Constants
- func Labels(cr *apiv1.PerconaServerMySQL) map[string]string
- func MatchLabels(cr *apiv1.PerconaServerMySQL) map[string]string
- func Name(cr *apiv1.PerconaServerMySQL) string
- func NamespacedName(cr *apiv1.PerconaServerMySQL) types.NamespacedName
- func PodName(cr *apiv1.PerconaServerMySQL, idx int) string
- func Service(cr *apiv1.PerconaServerMySQL, secret *corev1.Secret) *corev1.Service
- func ServiceName(cr *apiv1.PerconaServerMySQL) string
- func StatefulSet(cr *apiv1.PerconaServerMySQL, initImage, configHash, tlsHash string, ...) *appsv1.StatefulSet
- type Component
- func (c *Component) Labels() map[string]string
- func (c *Component) MatchLabels() map[string]string
- func (c *Component) Name() string
- func (c *Component) Object(ctx context.Context, cl client.Client) (client.Object, error)
- func (c *Component) PerconaServerMySQL() *apiv1.PerconaServerMySQL
- func (c *Component) PodSpec() *apiv1.PodSpec
- 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
Constants ¶
View Source
const ( AppName = "haproxy" CredsMountPath = "/etc/mysql/mysql-users-secret" )
View Source
const ( PortMySQL = 3306 PortMySQLReplicas = 3307 PortProxyProtocol = 3309 PortMySQLXProtocol = 33060 PortAdmin = 33062 PortPMMStats = 8404 )
View Source
const (
CustomConfigKey = "haproxy.cfg"
)
Variables ¶
This section is empty.
Functions ¶
func MatchLabels ¶
func MatchLabels(cr *apiv1.PerconaServerMySQL) map[string]string
func Name ¶
func Name(cr *apiv1.PerconaServerMySQL) string
func NamespacedName ¶ added in v0.6.0
func NamespacedName(cr *apiv1.PerconaServerMySQL) types.NamespacedName
func ServiceName ¶
func ServiceName(cr *apiv1.PerconaServerMySQL) string
func StatefulSet ¶
func StatefulSet(cr *apiv1.PerconaServerMySQL, initImage, configHash, tlsHash string, secret *corev1.Secret) *appsv1.StatefulSet
Types ¶
type Component ¶ added in v0.12.0
type Component apiv1.PerconaServerMySQL
func (*Component) MatchLabels ¶ added in v0.12.0
func (*Component) PerconaServerMySQL ¶ added in v0.12.0
func (c *Component) PerconaServerMySQL() *apiv1.PerconaServerMySQL
type Configurable ¶ added in v0.6.0
type Configurable apiv1.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
Click to show internal directories.
Click to hide internal directories.