controller

package
v0.0.0-...-11abd72 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package controller contains all controllers of the project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NonAdminBackupReconciler

type NonAdminBackupReconciler struct {
	client.Client
	Scheme             *runtime.Scheme
	EnforcedBackupSpec *velerov1.BackupSpec
	OADPNamespace      string
}

NonAdminBackupReconciler reconciles a NonAdminBackup object

func (*NonAdminBackupReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state, defined in NonAdminBackup object Spec.

func (*NonAdminBackupReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NonAdminBackupStorageLocationReconciler

type NonAdminBackupStorageLocationReconciler struct {
	client.Client
	Scheme          *runtime.Scheme
	EnforcedBslSpec *velerov1.BackupStorageLocationSpec
	OADPNamespace   string
}

NonAdminBackupStorageLocationReconciler reconciles a NonAdminBackupStorageLocation object

func (*NonAdminBackupStorageLocationReconciler) Reconcile

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 (*NonAdminBackupStorageLocationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager. Note: Adding Secret Watch within the namespace is being considered. Challenges with Secret Watch:

  • Secret updates without NaBSL object updates would be missed
  • One secret can be used by multiple NaBSL objects
  • Would need to add VeleroBackupStorageLocation UUID labels/annotations to ensure correct Secret-to-NaBSL mapping or get all the NaBSL objects and check if that particular secret is being used by any of them.

type NonAdminRestoreReconciler

type NonAdminRestoreReconciler struct {
	client.Client
	Scheme              *runtime.Scheme
	EnforcedRestoreSpec *velerov1.RestoreSpec
	OADPNamespace       string
}

NonAdminRestoreReconciler reconciles a NonAdminRestore object

func (*NonAdminRestoreReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state, defined in NonAdminRestore object Spec.

func (*NonAdminRestoreReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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