pxc

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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 OwnerRef

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

OwnerRef returns OwnerReference to object

Types

type CronRegistry added in v1.7.1

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

func NewCronRegistry added in v1.7.1

func NewCronRegistry() CronRegistry

type DepVersion added in v1.7.1

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 Shedule added in v1.7.1

type Shedule struct {
	ID          int
	CronShedule string
}

type VersionService added in v1.7.1

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

type VersionServiceClient added in v1.7.1

type VersionServiceClient struct {
	OpVersion string
}

func (VersionServiceClient) GetExactVersion added in v1.7.1

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