Documentation ¶
Index ¶
- Constants
- 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)
- func RoundUpGiB(volumeSizeBytes int64) (int64, error)
- type BackupScheduleJob
- type CronRegistry
- type DepVersion
- type ReconcilePerconaXtraDBCluster
- type ReconcileUsersResult
- type Schedule
- type VersionService
- type VersionServiceClient
Constants ¶
const (
GiB = int64(1024 * 1024 * 1024)
)
Variables ¶
var (
ErrNotAllPXCPodsRunning = errors.New("not all pxc pods are running")
)
var PassNotPropagatedError = errors.New("password not yet propagated")
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
func RoundUpGiB ¶ added in v1.15.0
RoundUpGiB rounds up the volume size in bytes upto multiplications of GiB in the unit of GiB
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 ¶
func (r *ReconcilePerconaXtraDBCluster) Reconcile(ctx context.Context, 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 ReconcileUsersResult ¶ added in v1.10.0
type ReconcileUsersResult struct {
// contains filtered or unexported fields
}
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)