Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ControllerName is the name of the PerconaPGCluster controller
PGClusterControllerName = "perconapgcluster-controller"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupScheduleJob ¶
type BackupScheduleJob struct {
// contains filtered or unexported fields
}
type CronRegistry ¶
type CronRegistry struct {
// contains filtered or unexported fields
}
func NewCronRegistry ¶
func NewCronRegistry() CronRegistry
func (*CronRegistry) AddFuncWithSeconds ¶
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.
func (*CronRegistry) ApplyBackupJob ¶
func (r *CronRegistry) ApplyBackupJob(name, namespace, schedule string, cmd func()) error
func (*CronRegistry) DeleteBackupJob ¶
func (r *CronRegistry) DeleteBackupJob(name, namespace string)
type PGClusterReconciler ¶
type PGClusterReconciler struct {
Client client.Client
Owner client.FieldOwner
PodExec func(
ctx context.Context, namespace, pod, container string,
stdin io.Reader, stdout, stderr io.Writer, command ...string,
) error
Recorder record.EventRecorder
Tracer trace.Tracer
Platform string
KubeVersion string
CrunchyController controller.Controller
IsOpenShift bool
Cron CronRegistry
Watchers *registry.Registry
ExternalChan chan event.GenericEvent
StopExternalWatchers chan event.DeleteEvent
}
Reconciler holds resources for the PerconaPGCluster reconciler
func (*PGClusterReconciler) SetupWithManager ¶
func (r *PGClusterReconciler) SetupWithManager(mgr manager.Manager) error
SetupWithManager adds the PerconaPGCluster controller to the provided runtime manager
Click to show internal directories.
Click to hide internal directories.