Documentation
¶
Index ¶
- Constants
- func ConfigSecretName(cr *apiv1alpha1.PerconaServerMySQL) string
- func CustomConfigMapName(cr *apiv1alpha1.PerconaServerMySQL) string
- func MatchLabels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
- func Name(cr *apiv1alpha1.PerconaServerMySQL) string
- func StatefulSet(cr *apiv1alpha1.PerconaServerMySQL, initImage, configHash string) *appsv1.StatefulSet
- 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 Configuration
- type Connection
- type Logger
- type Replication
- type Storage
Constants ¶
View Source
const ( AppName = "binlog-server" CredsMountPath = "/etc/mysql/mysql-users-secret" ConfigKey = "config.json" CustomConfigKey = "custom.json" )
Variables ¶
This section is empty.
Functions ¶
func ConfigSecretName ¶
func ConfigSecretName(cr *apiv1alpha1.PerconaServerMySQL) string
func CustomConfigMapName ¶
func CustomConfigMapName(cr *apiv1alpha1.PerconaServerMySQL) string
func MatchLabels ¶
func MatchLabels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
func Name ¶
func Name(cr *apiv1alpha1.PerconaServerMySQL) string
func StatefulSet ¶
func StatefulSet(cr *apiv1alpha1.PerconaServerMySQL, initImage, configHash string) *appsv1.StatefulSet
Types ¶
type Configurable ¶
type Configurable apiv1alpha1.PerconaServerMySQL
func (*Configurable) ExecuteConfigurationTemplate ¶
func (*Configurable) GetConfigMapKey ¶
func (c *Configurable) GetConfigMapKey() string
func (*Configurable) GetConfigMapName ¶
func (c *Configurable) GetConfigMapName() string
func (*Configurable) GetConfiguration ¶
func (c *Configurable) GetConfiguration() string
func (*Configurable) GetResources ¶
func (c *Configurable) GetResources() corev1.ResourceRequirements
type Configuration ¶
type Configuration struct {
Logger Logger `json:"logger,omitempty"`
Connection Connection `json:"connection"`
Replication Replication `json:"replication,omitempty"`
Storage Storage `json:"storage,omitempty"`
}
type Connection ¶
type Connection struct {
Host string `json:"host,omitempty"`
Port int32 `json:"port,omitempty"`
User string `json:"user,omitempty"`
Password string `json:"password,omitempty"`
ConnectTimeout int32 `json:"connect_timeout,omitempty"`
ReadTimeout int32 `json:"read_timeout,omitempty"`
WriteTimeout int32 `json:"write_timeout,omitempty"`
}
type Replication ¶
Click to show internal directories.
Click to hide internal directories.