Documentation ¶
Index ¶
- Constants
- Variables
- func NewConfigMapSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
- func NewHeadlessSVCSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
- func NewHealthySVCSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
- func NewMasterSVCSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
- func NewPDBSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
- func NewPodSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster, ...) syncer.Interface
- func NewSecretSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster, ...) syncer.Interface
- func NewStatefulSetSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster, ...) syncer.Interface
Constants ¶
View Source
const ( // MysqlPortName represents the mysql port name. MysqlPortName = "mysql" // MysqlPort is the default mysql port. MysqlPort = constants.MysqlPort // HelperXtrabackupPortName is name of the port on which we take backups HelperXtrabackupPortName = "xtrabackup" // HelperXtrabackupPort is the port on which we serve backups HelperXtrabackupPort = constants.HelperXtrabackupPort // OrcTopologyDir path where orc conf secret is mounted OrcTopologyDir = constants.OrcTopologyDir // HelperServerPort represents the port on which http server will run HelperServerPort = constants.HelperServerPort // HelperServerProbePath the probe path HelperServerProbePath = constants.HelperServerProbePath // ExporterPort is the port that metrics will be exported ExporterPort = constants.ExporterPort //ExporterPortName the name of the metrics exporter port ExporterPortName = "prometheus" // ExporterPath is the path on which metrics are expose ExporterPath = constants.ExporterPath // HelperDbName represent the database name that is used by operator to // manage the mysql cluster. HelperDbName = constants.HelperDbName // ConfVolumeMountPath is the path where mysql configs will be mounted ConfVolumeMountPath = constants.ConfVolumeMountPath // DataVolumeMountPath is the path to mysql data DataVolumeMountPath = constants.DataVolumeMountPath // ConfMapVolumeMountPath represents the temp config mount path in init containers ConfMapVolumeMountPath = constants.ConfMapVolumeMountPath // ConfDPath is the path to extra mysql configs dir ConfDPath = constants.ConfDPath )
TODO: make those consts private and move them in the file where are used.
Variables ¶
View Source
var ( // TargetPort is the mysql port that is set for headless service and should be string TargetPort = intstr.FromInt(MysqlPort) // ExporterTargetPort is the port for the exporter ExporterTargetPort = intstr.FromInt(ExporterPort) )
Functions ¶
func NewConfigMapSyncer ¶
func NewConfigMapSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
NewConfigMapSyncer returns config map syncer
func NewHeadlessSVCSyncer ¶
func NewHeadlessSVCSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
NewHeadlessSVCSyncer returns a service syncer
func NewHealthySVCSyncer ¶
func NewHealthySVCSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
NewHealthySVCSyncer returns a service syncer
func NewMasterSVCSyncer ¶
func NewMasterSVCSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
NewMasterSVCSyncer returns a service syncer for master service
func NewPDBSyncer ¶
func NewPDBSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster) syncer.Interface
NewPDBSyncer returns the syncer for pdb
func NewPodSyncer ¶
func NewPodSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster, host string) syncer.Interface
NewPodSyncer returns the syncer for pod
func NewSecretSyncer ¶
func NewSecretSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster, opt *options.Options) syncer.Interface
NewSecretSyncer returns secret syncer nolint: gocyclo
func NewStatefulSetSyncer ¶
func NewStatefulSetSyncer(c client.Client, scheme *runtime.Scheme, cluster *mysqlcluster.MysqlCluster, cmRev, secRev string, opt *options.Options) syncer.Interface
NewStatefulSetSyncer returns a syncer for stateful set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.