controllers

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLClusterReconciler

type MySQLClusterReconciler struct {
	client.Client
	Log                      logr.Logger
	Recorder                 record.EventRecorder
	Scheme                   *runtime.Scheme
	BinaryCopyContainerImage string
	ConfInitContainerImage   string
	CurlContainerImage       string
	MySQLAccessor            accessor.DataBaseAccessor
	WaitTime                 time.Duration
	SystemNamespace          string
}

MySQLClusterReconciler reconciles a MySQLCluster object

func (*MySQLClusterReconciler) Reconcile

func (r *MySQLClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles MySQLCluster.

func (*MySQLClusterReconciler) SetupWithManager

func (r *MySQLClusterReconciler) SetupWithManager(mgr ctrl.Manager, watcherInterval time.Duration) error

SetupWithManager sets up the controller for reconciliation.

type Operation added in v0.2.0

type Operation struct {
	Operators      []ops.Operator
	Wait           bool
	Conditions     []mocov1alpha1.MySQLClusterCondition
	SyncedReplicas *int
	Phase          moco.OperationPhase
	Event          *moco.MOCOEvent
}

Operation defines operations to MySQL Cluster

Jump to

Keyboard shortcuts

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