Documentation ¶
Index ¶
- Constants
- func Deployment(cr *apiv1alpha1.PerconaServerMySQL, initImage, configHash, tlsHash string) *appsv1.Deployment
- func MatchLabels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
- func Name(cr *apiv1alpha1.PerconaServerMySQL) string
- func PodName(cr *apiv1alpha1.PerconaServerMySQL, idx int) string
- func Service(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
- func ServiceName(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
Constants ¶
View Source
const ( ComponentName = "router" CredsMountPath = "/etc/mysql/mysql-users-secret" CustomConfigKey = "mysqlrouter.conf" )
View Source
const ( PortHTTP = 8443 PortRWDefault = 3306 PortReadWrite = 6446 PortReadOnly = 6447 PortXReadWrite = 6448 PortXReadOnly = 6449 PortXDefault = 33060 PortRWAdmin = 33062 )
Variables ¶
This section is empty.
Functions ¶
func Deployment ¶
func Deployment(cr *apiv1alpha1.PerconaServerMySQL, initImage, configHash, tlsHash string) *appsv1.Deployment
func MatchLabels ¶
func MatchLabels(cr *apiv1alpha1.PerconaServerMySQL) map[string]string
func Name ¶
func Name(cr *apiv1alpha1.PerconaServerMySQL) string
func PodName ¶ added in v0.6.0
func PodName(cr *apiv1alpha1.PerconaServerMySQL, idx int) string
func Service ¶
func Service(cr *apiv1alpha1.PerconaServerMySQL) *corev1.Service
func ServiceName ¶
func ServiceName(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
Click to show internal directories.
Click to hide internal directories.