# Functions
RegisterDefaults adds defaulters functions to the given scheme.
SetDefaults_MysqlBackup sets the defaults for a mysqlbackup object nolint: golint.
SetDefaults_MysqlCluster sets the defaults for a MySQLCLuster object nolint.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
BackupComplete means the backup has finished his execution.
BackupFailed means backup has failed.
ClusterConditionFailoverAck represents if the cluster has pending ack in orchestrator or not.
ClusterConditionFailoverInProgress indicates if there is a current failover in progress done by the Orchestrator.
ClusterConditionReadOnly describe cluster state if it's in read only or writable.
ClusterConditionReady represents the readiness of the cluster.
Delete when used it will try to delete the backup from remote storage then will remove the MysqlBackup resource from Kubernetes.
NodeConditionLagged represents if the node is marked as lagged by orchestrator.
NodeConditionMaster represents if the node is master or not.
NodeConditionReadOnly repesents if the node is read only or not.
NodeConditionReplicating represents if the node is replicating or not.
Retain when used it will delete only the MysqlBackup resource from Kuberentes and will keep the backup on remote storage.
# Variables
SchemeBuilder is used to add go types to the GroupVersionKind scheme.
SchemeGroupVersion is group version used to register these objects.
# Structs
BackupCondition defines condition struct for backup resource.
ClusterCondition defines type for cluster conditions.
MysqlBackup is the Schema for the mysqlbackups API +k8s:openapi-gen=true.
MysqlBackupList contains a list of MysqlBackup.
MysqlBackupSpec defines the desired state of MysqlBackup.
MysqlBackupStatus defines the observed state of MysqlBackup.
MysqlCluster is the Schema for the mysqlclusters API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.readyNodes +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type == "Ready")].status",description="The cluster status" +kubebuilder:printcolumn:name="Replicas",type="integer",JSONPath=".spec.replicas",description="The number of desired nodes" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:shortName=mysql.
MysqlClusterList contains a list of MysqlCluster.
MysqlClusterSpec defines the desired state of MysqlCluster nolint: maligned.
MysqlClusterStatus defines the observed state of MysqlCluster.
NodeCondition defines type for representing node conditions.
NodeStatus defines type for status of a node into cluster.
PodSpec defines type for configure cluster pod spec.
QueryLimits represents the pt-kill parameters, more info can be found here: https://www.percona.com/doc/percona-toolkit/LATEST/pt-kill.html.
VolumeSpec is the desired spec for storing mysql data.
# Type aliases
BackupConditionType defines condition types of a backup resources.
ClusterConditionType defines type for cluster condition type.
DeletePolicy defines the types of policies for backup deletions are.
MysqlConf defines type for extra cluster configs.
NodeConditionType defines type for node condition type.