replication

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 30 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,
	env *env.OperatorEnv) *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 mariadbv1alpha1.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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy