controller

package
v0.0.0-...-79e99aa Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: BSD-3-Clause Imports: 46 Imported by: 0

Documentation

Overview

Copyright (c) 2025 Electronic Arts Inc. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupReconciler

type BackupReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	RefResolver      *refresolver.RefResolver
	BackupReconciler *backup.Reconciler
}

BackupReconciler reconciles a Backup object.

func (*BackupReconciler) Reconcile

func (r *BackupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*BackupReconciler) SetupWithManager

func (r *BackupReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type BackupScheduleReconciler

type BackupScheduleReconciler struct {
	client.Client
	Scheme             *runtime.Scheme
	RefResolver        *refresolver.RefResolver
	ScheduleReconciler *backupschedule.Reconciler
}

BackupScheduleReconciler reconciles a BackupSchedule object.

func (*BackupScheduleReconciler) Reconcile

func (*BackupScheduleReconciler) SetupWithManager

func (r *BackupScheduleReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type DatabaseReconciler

type DatabaseReconciler struct {
	client.Client
	RefResolver    *refresolver.RefResolver
	ConditionReady *conditions.Ready
	SqlOpts        []database.SqlOpt
	Scheme         *runtime.Scheme
}

DatabaseReconciler reconciles a Database object

func NewDatabaseReconciler

func NewDatabaseReconciler(client client.Client, refResolver *refresolver.RefResolver, conditionReady *conditions.Ready,
	sqlOpts ...database.SqlOpt) *DatabaseReconciler

func (*DatabaseReconciler) Reconcile

func (r *DatabaseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.19.0/pkg/reconcile

func (*DatabaseReconciler) SetupWithManager

func (r *DatabaseReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type DoltDBReconciler

type DoltDBReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	Builder        *builder.Builder
	ConditionReady *conditions.Ready
	RefResolver    *refresolver.RefResolver

	RBACReconciler        *rbac.Reconciler
	ConfigMapReconciler   *configmap.Reconciler
	ServiceReconciler     *service.Reconciler
	StatefulSetReconciler *stsctrl.Reconciler
	StorageReconciler     *storage.Reconciler
	StatusReconciler      *status.Reconciler
	ReplicationReconciler *replication.ReplicationReconciler
}

DoltDBReconciler reconciles a DoltDB object

func (*DoltDBReconciler) Reconcile

func (r *DoltDBReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*DoltDBReconciler) SetupWithManager

func (r *DoltDBReconciler) SetupWithManager(mgr ctrl.Manager, opts k8sctrl.Options) error

SetupWithManager sets up the controller with the Manager.

type GrantReconciler

type GrantReconciler struct {
	client.Client
	RefResolver    *refresolver.RefResolver
	ConditionReady *conditions.Ready
	SqlOpts        []database.SqlOpt
}

GrantReconciler reconciles a Grant object

func NewGrantReconciler

func NewGrantReconciler(client client.Client, refResolver *refresolver.RefResolver, conditionReady *conditions.Ready,
	sqlOpts ...database.SqlOpt) *GrantReconciler

func (*GrantReconciler) Reconcile

func (r *GrantReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*GrantReconciler) SetupWithManager

func (r *GrantReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PodController

type PodController struct {
	client.Client
	// contains filtered or unexported fields
}

PodController reconciles a Pod object

func NewPodController

func NewPodController(name string, client client.Client, refResolver *refresolver.RefResolver,
	failoverController *replication.PodReadinessController, podAnnotations []string) *PodController

NewPodController creates a new PodController

func (*PodController) Reconcile

func (r *PodController) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. Reconcile reconciles a Pod resource to ensure it is in the desired state. It fetches the Pod object, resolves the associated DoltDB from annotations, and handles the Pod's readiness state.

func (*PodController) SetupWithManager

func (r *PodController) SetupWithManager(mgr ctrl.Manager) error

type SnapshotReconciler

type SnapshotReconciler struct {
	client.Client
	Scheme                   *runtime.Scheme
	Builder                  *builder.Builder
	RefResolver              *refresolver.RefResolver
	VolumeSnapshotReconciler *volumesnapshot.Reconciler
	ConditionReady           *conditions.Ready
}

SnapshotReconciler reconciles a Snapshot object

func (*SnapshotReconciler) PatchStatus

func (r *SnapshotReconciler) PatchStatus(ctx context.Context, snapshot *doltv1alpha.Snapshot, patcher conditions.Patcher) error

func (*SnapshotReconciler) Reconcile

func (r *SnapshotReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. the Snapshot object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

func (*SnapshotReconciler) SetupWithManager

func (r *SnapshotReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type UserReconciler

type UserReconciler struct {
	client.Client
	RefResolver    *refresolver.RefResolver
	ConditionReady *conditions.Ready
	SqlOpts        []database.SqlOpt
}

UserReconciler reconciles a User object

func NewUserReconciler

func NewUserReconciler(client client.Client, refResolver *refresolver.RefResolver, conditionReady *conditions.Ready,
	dbOpts ...database.SqlOpt) *UserReconciler

NewUserReconciler creates a new UserReconciler.

func (*UserReconciler) Reconcile

func (r *UserReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*UserReconciler) SetupWithManager

func (r *UserReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the UserReconciler with the provided manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL