pgcluster

package
v0.0.0-...-4692553 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 58 Imported by: 0

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) Reconcile

func (r *PGClusterReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

func (*PGClusterReconciler) SetupWithManager

func (r *PGClusterReconciler) SetupWithManager(mgr manager.Manager) error

SetupWithManager adds the PerconaPGCluster controller to the provided runtime manager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳