controllers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AWS registry env vars
	RegistryStorageEnvVarKey                 = "REGISTRY_STORAGE"
	RegistryStorageS3AccesskeyEnvVarKey      = "REGISTRY_STORAGE_S3_ACCESSKEY"
	RegistryStorageS3BucketEnvVarKey         = "REGISTRY_STORAGE_S3_BUCKET"
	RegistryStorageS3RegionEnvVarKey         = "REGISTRY_STORAGE_S3_REGION"
	RegistryStorageS3SecretkeyEnvVarKey      = "REGISTRY_STORAGE_S3_SECRETKEY"
	RegistryStorageS3RegionendpointEnvVarKey = "REGISTRY_STORAGE_S3_REGIONENDPOINT"
	RegistryStorageS3RootdirectoryEnvVarKey  = "REGISTRY_STORAGE_S3_ROOTDIRECTORY"
	RegistryStorageS3SkipverifyEnvVarKey     = "REGISTRY_STORAGE_S3_SKIPVERIFY"
	// Azure registry env vars
	RegistryStorageAzureContainerEnvVarKey   = "REGISTRY_STORAGE_AZURE_CONTAINER"
	RegistryStorageAzureAccountnameEnvVarKey = "REGISTRY_STORAGE_AZURE_ACCOUNTNAME"
	RegistryStorageAzureAccountkeyEnvVarKey  = "REGISTRY_STORAGE_AZURE_ACCOUNTKEY"
	// GCP registry env vars
	RegistryStorageGCSBucket        = "REGISTRY_STORAGE_GCS_BUCKET"
	RegistryStorageGCSKeyfile       = "REGISTRY_STORAGE_GCS_KEYFILE"
	RegistryStorageGCSRootdirectory = "REGISTRY_STORAGE_GCS_ROOTDIRECTORY"
)

Registry Env var keys

View Source
const (
	S3                    = "s3"
	Azure                 = "azure"
	GCS                   = "gcs"
	AWSProvider           = "aws"
	AzureProvider         = "azure"
	GCPProvider           = "gcp"
	Region                = "region"
	S3URL                 = "s3Url"
	InsecureSkipTLSVerify = "insecureSkipTLSVerify"
	StorageAccount        = "storageAccount"
	ResourceGroup         = "resourceGroup"
)

provider specific object storage

View Source
const (
	Restic                = "restic"
	ResticRestoreHelperCM = "restic-restore-action-config"
	HostPods              = "host-pods"
)
View Source
const (
	Server   = "server"
	Registry = "Registry"
	//TODO: Check for default secret names
	VeleroAWSSecretName   = "cloud-credentials"
	VeleroAzureSecretName = "cloud-credentials-azure"
	VeleroGCPSecretName   = "cloud-credentials-gcp"
)
View Source
const (
	AWSProfile          = "profile"
	AWSRegion           = "region"
	GCPSnapshotLocation = "shapshotLocation"
	GCPProject          = "project"
	AzureApiTimeout     = "apiTimeout"
	AzureSubscriptionId = "subscriptionId"
	AzureIncremental    = "incremental"
	AzureResourceGroup  = "resourceGroup"
)

provider specific object storage

Variables

This section is empty.

Functions

func ReconcileBatch

func ReconcileBatch(l logr.Logger, reconcileFuncs ...ReconcileFunc) (bool, error)

reconcileBatch steps through a list of reconcile functions until one returns false or an error.

Types

type ReconcileFunc

type ReconcileFunc func(logr.Logger) (bool, error)

type VeleroReconciler

type VeleroReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	Log            logr.Logger
	Context        context.Context
	NamespacedName types.NamespacedName
	EventRecorder  record.EventRecorder
}

VeleroReconciler reconciles a Velero object

func (*VeleroReconciler) InstallVeleroCRDs

func (r *VeleroReconciler) InstallVeleroCRDs(log logr.Logger) error

TODO: Remove this function as it's no longer being used

func (*VeleroReconciler) Reconcile

func (r *VeleroReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the Velero object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*VeleroReconciler) ReconcileBackupStorageLocations

func (r *VeleroReconciler) ReconcileBackupStorageLocations(log logr.Logger) (bool, error)

func (*VeleroReconciler) ReconcileRegistries

func (r *VeleroReconciler) ReconcileRegistries(log logr.Logger) (bool, error)

func (*VeleroReconciler) ReconcileRegistryRouteConfigs

func (r *VeleroReconciler) ReconcileRegistryRouteConfigs(log logr.Logger) (bool, error)

func (*VeleroReconciler) ReconcileRegistryRoutes

func (r *VeleroReconciler) ReconcileRegistryRoutes(log logr.Logger) (bool, error)

func (*VeleroReconciler) ReconcileRegistrySVCs

func (r *VeleroReconciler) ReconcileRegistrySVCs(log logr.Logger) (bool, error)

func (*VeleroReconciler) ReconcileResticDaemonset

func (r *VeleroReconciler) ReconcileResticDaemonset(log logr.Logger) (bool, error)

func (*VeleroReconciler) ReconcileResticRestoreHelperConfig

func (r *VeleroReconciler) ReconcileResticRestoreHelperConfig(log logr.Logger) (bool, error)

func (*VeleroReconciler) ReconcileRestoreResourcesVersionPriority

func (r *VeleroReconciler) ReconcileRestoreResourcesVersionPriority(velero *oadpv1alpha1.Velero) (bool, error)

If RestoreResourcesVersionPriority is defined, configmap is created or updated and feature flag for EnableAPIGroupVersions is added to velero

func (*VeleroReconciler) ReconcileVeleroCRDs

func (r *VeleroReconciler) ReconcileVeleroCRDs(log logr.Logger) (bool, error)

TODO: Remove this function as it's no longer being used TODO: Temporary solution for Non-OLM Operator install

func (*VeleroReconciler) ReconcileVeleroClusterRoleBinding

func (r *VeleroReconciler) ReconcileVeleroClusterRoleBinding(log logr.Logger) (bool, error)

TODO: Remove this function as it's no longer being used

func (*VeleroReconciler) ReconcileVeleroDeployment

func (r *VeleroReconciler) ReconcileVeleroDeployment(log logr.Logger) (bool, error)

func (*VeleroReconciler) ReconcileVeleroSecurityContextConstraint

func (r *VeleroReconciler) ReconcileVeleroSecurityContextConstraint(log logr.Logger) (bool, error)

func (*VeleroReconciler) ReconcileVeleroServiceAccount

func (r *VeleroReconciler) ReconcileVeleroServiceAccount(log logr.Logger) (bool, error)

TODO: Remove this function as it's no longer being used

func (*VeleroReconciler) ReconcileVolumeSnapshotLocations

func (r *VeleroReconciler) ReconcileVolumeSnapshotLocations(log logr.Logger) (bool, error)

func (*VeleroReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*VeleroReconciler) ValidateBackupStorageLocations

func (r *VeleroReconciler) ValidateBackupStorageLocations(log logr.Logger) (bool, error)

func (*VeleroReconciler) ValidateVolumeSnapshotLocations

func (r *VeleroReconciler) ValidateVolumeSnapshotLocations(log logr.Logger) (bool, error)

Jump to

Keyboard shortcuts

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