Documentation ¶
Index ¶
Constants ¶
View Source
const ( // init containers ContainerInitSidecarName = "init-sidecar" ContainerInitMysqlName = "init-mysql" // containers ContainerMysqlName = "mysql" ContainerXenonName = "xenon" ContainerMetricsName = "metrics" ContainerSlowLogName = "slowlog" ContainerAuditLogName = "auditlog" MysqlPortName = "mysql" MysqlPort = 3306 MetricsPortName = "metrics" MetricsPort = 9104 XenonPortName = "xenon" XenonPort = 8801 ReplicationUser = "qc_repl" MetricsUser = "qc_metrics" // volumes names ConfVolumeName = "conf" ConfMapVolumeName = "config-map" LogsVolumeName = "logs" DataVolumeName = "data" SysVolumeName = "host-sys" ScriptsVolumeName = "scripts" XenonVolumeName = "xenon" InitFileVolumeName = "init-mysql" // volumes mount path. ConfVolumeMountPath = "/etc/mysql" ConfMapVolumeMountPath = "/mnt/config-map" LogsVolumeMountPath = "/var/log/mysql" DataVolumeMountPath = "/var/lib/mysql" SysVolumeMountPath = "/host-sys" ScriptsVolumeMountPath = "/scripts" XenonVolumeMountPath = "/etc/xenon" InitFileVolumeMountPath = "/docker-entrypoint-initdb.d" )
Variables ¶
View Source
var ( // MySQLDefaultVersion is the version for mysql that should be used MySQLDefaultVersion = "5.7.33" // MySQLTagsToSemVer maps simple version to semver versions MySQLTagsToSemVer = map[string]string{ "5.7": "5.7.33", } // MysqlImageVersions is a map of supported mysql version and their image MysqlImageVersions = map[string]string{ "5.7.33": "percona/percona-server:5.7.33", } )
Functions ¶
func BytesToString ¶
BytesToString casts slice to string without copy
func StringToBytes ¶
StringToBytes casts string to slice without copy
Types ¶
type ResourceName ¶
type ResourceName string
ResourceName is the type for aliasing resources that will be created.
const ( // HeadlessSVC is the alias of the headless service resource. HeadlessSVC ResourceName = "headless" // StatefulSet is the alias of the statefulset resource. StatefulSet ResourceName = "mysql" // ConfigMap is the alias for mysql configs, the config map resource. ConfigMap ResourceName = "config-files" // LeaderService is the name of the service that points to leader node. LeaderService ResourceName = "leader-service" // FollowerService is the name of a service that points healthy followers (excludes leader). FollowerService ResourceName = "follower-service" // Secret is the name of the secret that contains operator related credentials. Secret ResourceName = "secret" // Role is the alias of the role resource. Role ResourceName = "role" // RoleBinding is the alias of the rolebinding resource. RoleBinding ResourceName = "rolebinding" // ServiceAccount is the alias of the serviceaccount resource. ServiceAccount ResourceName = "service-account" )
Click to show internal directories.
Click to hide internal directories.