Documentation
¶
Index ¶
Constants ¶
View Source
const ( ImageInitContainer = "perconalab/percona-server-mysql-operator:main" ImageMySQL = "perconalab/percona-server-mysql-operator:main-psmysql8.4" ImageHAProxy = "perconalab/percona-server-mysql-operator:main-haproxy" ImageRouter = "perconalab/percona-server-mysql-operator:main-router8.4" ImageOrchestrator = "perconalab/percona-server-mysql-operator:main-orchestrator" ImagePMM = "perconalab/pmm-client:3-dev-latest" ImageBackup = "perconalab/percona-server-mysql-operator:main-backup8.4" ImageBinlogServer = "perconalab/percona-binlog-server:0.2.1" ImageToolkit = "perconalab/percona-server-mysql-operator:main-toolkit" )
View Source
const ( NameCluster = "ps-cluster1" NameBackup = "backup1" NameRestore = "restore1" )
Variables ¶
View Source
var ( Labels = map[string]string{ "rack": "rack-22", } Annotations = map[string]string{ "service.beta.kubernetes.io/aws-load-balancer-backend-protocol": "tcp", "service.beta.kubernetes.io/aws-load-balancer-type": "nlb", } NodeSelector = map[string]string{ "topology.kubernetes.io/zone": "us-east-1a", } VerifyTLS = ptr.To(true) RuntimeClassName = ptr.To("image-rc") SchedulerName = "default-scheduler" PriorityClassName = "high-priority" SourcePod = mysql.PodName(&apiv1.PerconaServerMySQL{ObjectMeta: metav1.ObjectMeta{Name: NameCluster}}, 1) )
Functions ¶
func FromPresets ¶
FromPresets assigns default values to fields in provided custom resource based on their types. The internal presets slice defines the default value associated with each type.
func ManualCluster ¶
func ManualCluster(cr *apiv1.PerconaServerMySQL)
ManualCluster sets default values for empty fields in example cr.yaml that are not set by CheckNSetDefaults and cannot be set via PresetDefaults.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.