mysqloperator

package
v0.0.0-...-e8c5ea9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = log.WithValues("MySQL Cluster Controller")

Functions

func Add

add adds a new Controller to mgr with r as the reconcile.Reconciler

func NewReconciler

func NewReconciler(mgr manager.Manager) reconcile.Reconciler

newReconciler returns a new reconcile.Reconciler

func NewService

func NewService(app *opsv1alpha1.MysqlOperator) *corev1.Service

func NewStatefulSet

func NewStatefulSet(app *opsv1alpha1.MysqlOperator) *appsv1.StatefulSet

Types

type ReconcileMysqlOperator

type ReconcileMysqlOperator struct {
	// contains filtered or unexported fields
}

ReconcileMysqlOperator reconciles a MysqlOperator object

func (*ReconcileMysqlOperator) MysqlManager

func (r *ReconcileMysqlOperator) MysqlManager()

func (*ReconcileMysqlOperator) Reconcile

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

Reconcile reads that state of the cluster for a MysqlOperator object and makes changes based on the state read and what is in the MysqlOperator.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. This example creates a Pod as an example Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

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