clustercontroller

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ControllerName is the name of this controller
	ControllerName = "mysqlclusterController"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	InstallCRDs bool

	CRDClient apiext_clientset.Interface

	KubeSharedInformerFactory informers.SharedInformerFactory
	SharedInformerFactory     myinformers.SharedInformerFactory
	// contains filtered or unexported fields
}

Controller structure

func New

func New(ctx *controllerpkg.Context) *Controller

New returns a new controller

func (*Controller) Reconcile added in v0.1.4

func (c *Controller) Reconcile(ctx context.Context, cluster *api.MysqlCluster) error

func (*Controller) Start

func (c *Controller) Start(workers int, stopCh <-chan struct{}) error

Start method start workers.

func (*Controller) Sync

func (c *Controller) Sync(ctx context.Context, cluster *api.MysqlCluster) error

Sync for add and update.

Jump to

Keyboard shortcuts

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