controllers

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReduceVolumeSize = errors.New("cannot reduce volume size")
)

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
	MaxConcurrentReconciles int
}

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
	MaxConcurrentReconciles int
}

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