v0.2.8 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 26 Imported by: 0




View Source
const (

	// OrchestratorFinalizer is set when the cluster is registered in
	// orchestrator and is removed when no nodes are in orchestrator
	OrchestratorFinalizer = "OrchestratorFinalizer"


This section is empty.


func Add

func Add(mgr manager.Manager) error

Add creates a new MysqlCluster Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started. USER ACTION REQUIRED: update cmd/manager/main.go to call this mysql.Add(mgr) to install this Controller

func NewOrcUpdater

func NewOrcUpdater(cluster *mysqlcluster.MysqlCluster, r record.EventRecorder, orcClient orc.Interface) syncer.Interface

NewOrcUpdater returns a syncer that updates cluster status from orchestrator.


type InstancesSet

type InstancesSet []orc.Instance

InstancesSet type is a alias for []orc.Instance with extra utils functions

func (InstancesSet) DetermineMaster

func (is InstancesSet) DetermineMaster() *orc.Instance

DetermineMaster returns a orc.Instance that is master or nil if can't find master

func (InstancesSet) GetInstance

func (is InstancesSet) GetInstance(host string) *orc.Instance

GetInstance returns orc.Instance for a given hostname

type ReconcileMysqlCluster

type ReconcileMysqlCluster struct {
	// contains filtered or unexported fields

ReconcileMysqlCluster reconciles a MysqlCluster object

func (*ReconcileMysqlCluster) Reconcile

func (r *ReconcileMysqlCluster) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reconcile for each mysql cluster state from orchestrator to cluster, this reconcile is triggered in a loop.

Automatically generate RBAC rules to allow the Controller to read and write Deployments

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL