Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCustomMetrics ¶ added in v0.6.0
func InitCustomMetrics(reconciler *FoundationDBClusterReconciler)
InitCustomMetrics initializes the metrics collectors for the operator.
Types ¶
type DatabaseClientProvider ¶ added in v0.35.0
type DatabaseClientProvider interface { // GetLockClient generates a client for working with locks through the database. GetLockClient(cluster *fdbv1beta2.FoundationDBCluster) (fdbadminclient.LockClient, error) // GetAdminClient generates a client for performing administrative actions // against the database. GetAdminClient(cluster *fdbv1beta2.FoundationDBCluster, kubernetesClient client.Client) (fdbadminclient.AdminClient, error) }
DatabaseClientProvider provides an abstraction for creating clients that communicate with the database.
type FoundationDBBackupReconciler ¶ added in v0.7.0
type FoundationDBBackupReconciler struct { client.Client Recorder record.EventRecorder Log logr.Logger InSimulation bool DatabaseClientProvider DatabaseClientProvider ServerSideApply bool }
FoundationDBBackupReconciler reconciles a FoundationDBCluster object
func (*FoundationDBBackupReconciler) Reconcile ¶ added in v0.7.0
func (r *FoundationDBBackupReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
Reconcile runs the reconciliation logic.
func (*FoundationDBBackupReconciler) SetupWithManager ¶ added in v0.7.0
func (r *FoundationDBBackupReconciler) SetupWithManager(mgr ctrl.Manager, maxConcurrentReconciles int, selector metav1.LabelSelector) error
SetupWithManager prepares a reconciler for use.
type FoundationDBClusterReconciler ¶
type FoundationDBClusterReconciler struct { client.Client Recorder record.EventRecorder Log logr.Logger InSimulation bool EnableRestartIncompatibleProcesses bool ServerSideApply bool EnableRecoveryState bool PodLifecycleManager podmanager.PodLifecycleManager PodClientProvider func(*fdbv1beta2.FoundationDBCluster, *corev1.Pod) (podclient.FdbPodClient, error) DatabaseClientProvider DatabaseClientProvider DeprecationOptions internal.DeprecationOptions GetTimeout time.Duration PostTimeout time.Duration }
FoundationDBClusterReconciler reconciles a FoundationDBCluster object
func NewFoundationDBClusterReconciler ¶ added in v0.39.2
func NewFoundationDBClusterReconciler(podLifecycleManager podmanager.PodLifecycleManager) *FoundationDBClusterReconciler
NewFoundationDBClusterReconciler creates a new FoundationDBClusterReconciler with defaults.
func (*FoundationDBClusterReconciler) Reconcile ¶
func (r *FoundationDBClusterReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
Reconcile runs the reconciliation logic.
func (*FoundationDBClusterReconciler) SetupWithManager ¶
func (r *FoundationDBClusterReconciler) SetupWithManager(mgr ctrl.Manager, maxConcurrentReconciles int, selector metav1.LabelSelector, watchedObjects ...client.Object) error
SetupWithManager prepares a reconciler for use.
type FoundationDBRestoreReconciler ¶ added in v0.11.0
type FoundationDBRestoreReconciler struct { client.Client Recorder record.EventRecorder Log logr.Logger DatabaseClientProvider DatabaseClientProvider ServerSideApply bool }
FoundationDBRestoreReconciler reconciles a FoundationDBRestore object
func (*FoundationDBRestoreReconciler) Reconcile ¶ added in v0.11.0
func (r *FoundationDBRestoreReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
Reconcile runs the reconciliation logic.
func (*FoundationDBRestoreReconciler) SetupWithManager ¶ added in v0.11.0
func (r *FoundationDBRestoreReconciler) SetupWithManager(mgr ctrl.Manager, maxConcurrentReconciles int, selector metav1.LabelSelector) error
SetupWithManager prepares a reconciler for use.
Source Files ¶
- add_pods.go
- add_process_groups.go
- add_pvcs.go
- add_services.go
- admin_client_mock.go
- backup_controller.go
- bounce_processes.go
- change_coordinators.go
- check_client_compatibility.go
- choose_removals.go
- cluster_controller.go
- controllers.go
- delete_pods_for_buggification.go
- exclude_processes.go
- fdb_client.go
- generate_initial_cluster_file.go
- lock_client.go
- metrics.go
- modify_backup.go
- remove_incompatible_processes.go
- remove_process_groups.go
- remove_services.go
- replace_failed_process_groups.go
- replace_misconfigured_process_groups.go
- restore_controller.go
- start_backup.go
- start_restore.go
- stop_backup.go
- toggle_backup_paused.go
- update_backup_agents.go
- update_backup_status.go
- update_config_map.go
- update_database_configuration.go
- update_labels.go
- update_lock_configuration.go
- update_pod_config.go
- update_pods.go
- update_sidecar_versions.go
- update_status.go