Documentation
¶
Index ¶
- Constants
- func ClusterSetManagerJob(pcs *apiv1.PerconaServerMySQLClusterSet, cluster *apiv1.ClusterSetCluster, ...) *batchv1.Job
- func ClusterSetManagerJobKey(pcs *apiv1.PerconaServerMySQLClusterSet, clusterName, cmd string) types.NamespacedName
- func MySQLShellRunner(pcs *apiv1.PerconaServerMySQLClusterSet) *appsv1.Deployment
- type ClusterStatus
- type ClusterStatuses
- type Status
- type TopologyStatus
Constants ¶
View Source
const ( MySQLShellRunnerAppName = "mysqlshell-runner" MySQLShellRunnerComponent = "mysqlshell-runner" MySQLShellRunnerPassword = "MYSQL_PASSWORD" )
View Source
const ( ClusterSetReplicaManagerAppName = "clusterset-replica-manager" ClusterSetReplicaManagerComponent = "clusterset-replica-manager" CmdAddReplica = "add-replica" CmdRemoveReplica = "remove-replica" CmdSetPrimary = "set-primary" CmdRejoinCluster = "rejoin-cluster" )
View Source
const ( StatusHealthy string = "HEALTHY" StatusUnknown string = "UNKNOWN" GlobalStatusOK string = "OK" )
View Source
const ( ClusterRolePrimary string = "PRIMARY" ClusterRoleReplica string = "REPLICA" )
Variables ¶
This section is empty.
Functions ¶
func ClusterSetManagerJob ¶
func ClusterSetManagerJob( pcs *apiv1.PerconaServerMySQLClusterSet, cluster *apiv1.ClusterSetCluster, cmd string, args []string, image, serviceAccount string, ) *batchv1.Job
func ClusterSetManagerJobKey ¶ added in v1.3.0
func ClusterSetManagerJobKey(pcs *apiv1.PerconaServerMySQLClusterSet, clusterName, cmd string) types.NamespacedName
func MySQLShellRunner ¶
func MySQLShellRunner(pcs *apiv1.PerconaServerMySQLClusterSet) *appsv1.Deployment
Types ¶
type ClusterStatus ¶ added in v1.3.0
type ClusterStatus struct {
ClusterRole string `json:"clusterRole"`
GlobalStatus string `json:"globalStatus"`
Primary string `json:"primary"`
Topology map[string]TopologyStatus `json:"topology"`
}
type ClusterStatuses ¶ added in v1.3.0
type ClusterStatuses map[string]ClusterStatus
func (ClusterStatuses) IntoAPI ¶ added in v1.3.0
func (cs ClusterStatuses) IntoAPI() apiv1.ClusterSetClusterStatuses
type Status ¶
type Status struct {
Clusters ClusterStatuses `json:"clusters"`
DomainName string `json:"domainName"`
GlobalPrimaryInstance string `json:"globalPrimaryInstance"`
PrimaryCluster string `json:"primaryCluster"`
Status string `json:"status"`
StatusText string `json:"statusText"`
}
func (*Status) GetPrimaryCluster ¶
type TopologyStatus ¶ added in v1.3.0
type TopologyStatus struct {
Status string `json:"status"`
MemberRole string `json:"memberRole"`
MemberState string `json:"memberState"`
ReplicationLagFromImmediateSource string `json:"replicationLagFromImmediateSource"`
ReplicationLagFromOriginalSource string `json:"replicationLagFromOriginalSource"`
}
Click to show internal directories.
Click to hide internal directories.