pxc

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 64 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAllPXCPodsRunning = errors.New("not all pxc pods are running")
)
View Source
var PassNotPropagatedError = errors.New("password not yet propagated")

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new PerconaXtraDBCluster Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func NewExposedPXCService added in v1.9.0

func NewExposedPXCService(svcName string, cr *api.PerconaXtraDBCluster) *corev1.Service

func OwnerRef

func OwnerRef(ro runtime.Object, scheme *runtime.Scheme) (metav1.OwnerReference, error)

OwnerRef returns OwnerReference to object

Types

type BackupScheduleJob added in v1.9.0

type BackupScheduleJob struct {
	api.PXCScheduledBackupSchedule
	JobID cron.EntryID
}

type CronRegistry added in v1.5.0

type CronRegistry struct {
	// contains filtered or unexported fields
}

func NewCronRegistry added in v1.5.0

func NewCronRegistry() CronRegistry

func (*CronRegistry) AddFuncWithSeconds added in v1.12.0

func (r *CronRegistry) AddFuncWithSeconds(spec string, cmd func()) (cron.EntryID, error)

AddFuncWithSeconds does the same as cron.AddFunc but changes the schedule so that the function will run the exact second that this method is called.

type DepVersion added in v1.5.0

type DepVersion struct {
	PXCImage            string `json:"pxcImage,omitempty"`
	PXCVersion          string `json:"pxcVersion,omitempty"`
	BackupImage         string `json:"backupImage,omitempty"`
	BackupVersion       string `json:"backupVersion,omitempty"`
	ProxySqlImage       string `json:"proxySqlImage,omitempty"`
	ProxySqlVersion     string `json:"proxySqlVersion,omitempty"`
	HAProxyImage        string `json:"haproxyImage,omitempty"`
	HAProxyVersion      string `json:"haproxyVersion,omitempty"`
	PMMImage            string `json:"pmmImage,omitempty"`
	PMMVersion          string `json:"pmmVersion,omitempty"`
	LogCollectorVersion string `json:"logCollectorVersion,omitempty"`
	LogCollectorImage   string `json:"LogCollectorImage,omitempty"`
}

type ReconcilePerconaXtraDBCluster

type ReconcilePerconaXtraDBCluster struct {
	// contains filtered or unexported fields
}

ReconcilePerconaXtraDBCluster reconciles a PerconaXtraDBCluster object

func (*ReconcilePerconaXtraDBCluster) Reconcile

Reconcile reads that state of the cluster for a PerconaXtraDBCluster object and makes changes based on the state read and what is in the PerconaXtraDBCluster.Spec Note: 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.

type ReconcileUsersResult added in v1.10.0

type ReconcileUsersResult struct {
	// contains filtered or unexported fields
}

type Schedule added in v1.9.0

type Schedule struct {
	ID           cron.EntryID
	CronSchedule string
}

type VersionService added in v1.5.0

type VersionService interface {
	GetExactVersion(cr *api.PerconaXtraDBCluster, endpoint string, vm versionMeta) (DepVersion, error)
}

type VersionServiceClient added in v1.5.0

type VersionServiceClient struct {
	OpVersion string
}

func (VersionServiceClient) GetExactVersion added in v1.5.0

func (vs VersionServiceClient) GetExactVersion(cr *api.PerconaXtraDBCluster, endpoint string, vm versionMeta) (DepVersion, error)

Jump to

Keyboard shortcuts

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