controllers

package
Version: v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 51 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
	Scheme          *runtime.Scheme
	Recorder        record.EventRecorder
	AgentImage      string
	BackupImage     string
	FluentBitImage  string
	ExporterImage   string
	SystemNamespace string
	ClusterManager  clustering.ClusterManager
}

MySQLClusterReconciler reconciles a MySQLCluster object

func (*MySQLClusterReconciler) Reconcile

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

Reconcile implements Reconciler interface. See https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile#Reconciler

func (*MySQLClusterReconciler) SetupWithManager

func (r *MySQLClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PodWatcher added in v0.9.4

type PodWatcher struct {
	client.Client
	ClusterManager clustering.ClusterManager
}

PodWatcher watches MySQL pods and informs the cluster manager of the event.

func (*PodWatcher) Reconcile added in v0.9.4

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

Reconcile implements Reconciler interface. See https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile#Reconciler

func (*PodWatcher) SetupWithManager added in v0.9.4

func (r *PodWatcher) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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