Documentation ¶
Index ¶
- func Add(mgr manager.Manager) error
- func GetCellVTGateResources(cell *vitessv1alpha2.VitessCell) (*appsv1.Deployment, *corev1.Service, error)
- func GetCellVTctldResources(cell *vitessv1alpha2.VitessCell) (*appsv1.Deployment, *corev1.Service, error)
- func GetReplicaTabletInitMasterJob(tablet *vitessv1alpha2.VitessTablet) (*batchv1.Job, error)
- func GetTabletMysqlContainers(tablet *vitessv1alpha2.VitessTablet) (containers []corev1.Container, initContainers []corev1.Container, err error)
- func GetTabletVTTabletContainers(tablet *vitessv1alpha2.VitessTablet) (containers []corev1.Container, initContainers []corev1.Container, err error)
- type ReconcileVitessCluster
- func (r *ReconcileVitessCluster) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileCell(cell *vitessv1alpha2.VitessCell) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileCellVTGate(cell *vitessv1alpha2.VitessCell) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileCellVTctld(cell *vitessv1alpha2.VitessCell) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileClusterLockserver(cluster *vitessv1alpha2.VitessCluster) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileClusterResources(cluster *vitessv1alpha2.VitessCluster) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileClusterTabletService(cluster *vitessv1alpha2.VitessCluster) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileKeyspace(keyspace *vitessv1alpha2.VitessKeyspace) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileReplicaTabletInitJob(tablet *vitessv1alpha2.VitessTablet) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileShard(shard *vitessv1alpha2.VitessShard) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileTablet(tablet *vitessv1alpha2.VitessTablet) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) ReconcileTabletResources(tablet *vitessv1alpha2.VitessTablet) (reconcile.Result, error)
- func (r *ReconcileVitessCluster) SetClusterPhase(cluster *vitessv1alpha2.VitessCluster, p vitessv1alpha2.ClusterPhase) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
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 ¶
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 (r *ReconcileVitessCluster) ReconcileCell(cell *vitessv1alpha2.VitessCell) (reconcile.Result, error)
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 (r *ReconcileVitessCluster) ReconcileShard(shard *vitessv1alpha2.VitessShard) (reconcile.Result, error)
func (*ReconcileVitessCluster) ReconcileTablet ¶
func (r *ReconcileVitessCluster) ReconcileTablet(tablet *vitessv1alpha2.VitessTablet) (reconcile.Result, error)
func (*ReconcileVitessCluster) ReconcileTabletResources ¶
func (r *ReconcileVitessCluster) ReconcileTabletResources(tablet *vitessv1alpha2.VitessTablet) (reconcile.Result, error)
func (*ReconcileVitessCluster) SetClusterPhase ¶
func (r *ReconcileVitessCluster) SetClusterPhase(cluster *vitessv1alpha2.VitessCluster, p vitessv1alpha2.ClusterPhase) error