Documentation
¶
Index ¶
- Variables
- func Add(mgr manager.Manager) error
- func NewExposedPXCService(svcName string, cr *api.PerconaXtraDBCluster) *corev1.Service
- func OwnerRef(ro runtime.Object, scheme *runtime.Scheme) (metav1.OwnerReference, error)
- type BackupScheduleJob
- type CronRegistry
- type DepVersion
- type ReconcilePerconaXtraDBCluster
- type Schedule
- type VersionService
- type VersionServiceClient
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotAllPXCPodsRunning = errors.New("not all pxc pods are running")
)
Functions ¶
func Add ¶
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
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
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 ¶
func (r *ReconcilePerconaXtraDBCluster) Reconcile(request reconcile.Request) (reconcile.Result, error)
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 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)
Click to show internal directories.
Click to hide internal directories.