replication

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.0.20

type Option func(*ReplicationReconciler)

func WithRefResolver added in v0.0.20

func WithRefResolver(rr *refresolver.RefResolver) Option

func WithSecretReconciler added in v0.0.20

func WithSecretReconciler(sr *secret.SecretReconciler) Option

func WithServiceReconciler added in v0.0.20

func WithServiceReconciler(sr *service.ServiceReconciler) Option

type ReplicationClientSet added in v0.0.25

type ReplicationClientSet struct {
	*sqlClientSet.ClientSet
}

func NewReplicationClientSet added in v0.0.25

func NewReplicationClientSet(mariadb *mariadbv1alpha1.MariaDB, refResolver *refresolver.RefResolver) (*ReplicationClientSet, error)

type ReplicationConfig

type ReplicationConfig struct {
	client.Client
	// contains filtered or unexported fields
}

func NewReplicationConfig

func NewReplicationConfig(client client.Client, builder *builder.Builder, secretReconciler *secret.SecretReconciler) *ReplicationConfig

func (*ReplicationConfig) ConfigurePrimary

func (r *ReplicationConfig) ConfigurePrimary(ctx context.Context, mariadb *mariadbv1alpha1.MariaDB, client *sqlClient.Client,
	podIndex int) error

func (*ReplicationConfig) ConfigureReplica

func (r *ReplicationConfig) ConfigureReplica(ctx context.Context, mariadb *mariadbv1alpha1.MariaDB, client *sqlClient.Client,
	replicaPodIndex, primaryPodIndex int, resetSlavePos bool) error

type ReplicationReconciler

type ReplicationReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

func NewReplicationReconciler

func NewReplicationReconciler(client client.Client, recorder record.EventRecorder, builder *builder.Builder, replConfig *ReplicationConfig,
	opts ...Option) (*ReplicationReconciler, error)

func (*ReplicationReconciler) Reconcile

func (*ReplicationReconciler) ReconcileProbeConfigMap added in v0.0.25

func (r *ReplicationReconciler) ReconcileProbeConfigMap(ctx context.Context, configMapKeyRef corev1.ConfigMapKeySelector,
	mdb *mariadbv1alpha1.MariaDB) error

nolint:lll

Jump to

Keyboard shortcuts

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