vitesscluster

package
v0.0.0-...-485fd57 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new VitessCluster Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func GetCellVTGateResources

func GetCellVTGateResources(cell *vitessv1alpha2.VitessCell) (*appsv1.Deployment, *corev1.Service, error)

func GetCellVTctldResources

func GetCellVTctldResources(cell *vitessv1alpha2.VitessCell) (*appsv1.Deployment, *corev1.Service, error)

func GetReplicaTabletInitMasterJob

func GetReplicaTabletInitMasterJob(tablet *vitessv1alpha2.VitessTablet) (*batchv1.Job, error)

func GetTabletMysqlContainers

func GetTabletMysqlContainers(tablet *vitessv1alpha2.VitessTablet) (containers []corev1.Container, initContainers []corev1.Container, err error)

func GetTabletVTTabletContainers

func GetTabletVTTabletContainers(tablet *vitessv1alpha2.VitessTablet) (containers []corev1.Container, initContainers []corev1.Container, err error)

Types

type ReconcileVitessCluster

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

ReconcileVitessCluster reconciles a VitessCluster object

func (*ReconcileVitessCluster) Reconcile

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

Reconcile reads that state of the cluster for a VitessCluster object and makes changes based on the state read and what is in the VitessCluster.Spec 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.

func (*ReconcileVitessCluster) ReconcileCell

func (*ReconcileVitessCluster) ReconcileCellVTGate

func (r *ReconcileVitessCluster) ReconcileCellVTGate(cell *vitessv1alpha2.VitessCell) (reconcile.Result, error)

func (*ReconcileVitessCluster) ReconcileCellVTctld

func (r *ReconcileVitessCluster) ReconcileCellVTctld(cell *vitessv1alpha2.VitessCell) (reconcile.Result, error)

func (*ReconcileVitessCluster) ReconcileClusterLockserver

func (r *ReconcileVitessCluster) ReconcileClusterLockserver(cluster *vitessv1alpha2.VitessCluster) (reconcile.Result, error)

func (*ReconcileVitessCluster) ReconcileClusterResources

func (r *ReconcileVitessCluster) ReconcileClusterResources(cluster *vitessv1alpha2.VitessCluster) (reconcile.Result, error)

ReconcileClusterResources should only be called against a fully-populated and verified VitessCluster object

func (*ReconcileVitessCluster) ReconcileClusterTabletService

func (r *ReconcileVitessCluster) ReconcileClusterTabletService(cluster *vitessv1alpha2.VitessCluster) (reconcile.Result, error)

func (*ReconcileVitessCluster) ReconcileKeyspace

func (r *ReconcileVitessCluster) ReconcileKeyspace(keyspace *vitessv1alpha2.VitessKeyspace) (reconcile.Result, error)

func (*ReconcileVitessCluster) ReconcileReplicaTabletInitJob

func (r *ReconcileVitessCluster) ReconcileReplicaTabletInitJob(tablet *vitessv1alpha2.VitessTablet) (reconcile.Result, error)

func (*ReconcileVitessCluster) ReconcileShard

func (*ReconcileVitessCluster) ReconcileTablet

func (*ReconcileVitessCluster) ReconcileTabletResources

func (r *ReconcileVitessCluster) ReconcileTabletResources(tablet *vitessv1alpha2.VitessTablet) (reconcile.Result, error)

func (*ReconcileVitessCluster) SetClusterPhase

Jump to

Keyboard shortcuts

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