Documentation ¶
Index ¶
- Constants
- func ReconcileBatch(l logr.Logger, reconcileFuncs ...ReconcileFunc) (bool, error)
- type ReconcileFunc
- type VeleroReconciler
- func (r *VeleroReconciler) InstallVeleroCRDs(log logr.Logger) error
- func (r *VeleroReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *VeleroReconciler) ReconcileBackupStorageLocations(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileRegistries(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileRegistryRouteConfigs(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileRegistryRoutes(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileRegistrySVCs(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileResticDaemonset(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileResticRestoreHelperConfig(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileRestoreResourcesVersionPriority(velero *oadpv1alpha1.Velero) (bool, error)
- func (r *VeleroReconciler) ReconcileVeleroCRDs(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileVeleroClusterRoleBinding(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileVeleroDeployment(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileVeleroSecurityContextConstraint(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileVeleroServiceAccount(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ReconcileVolumeSnapshotLocations(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *VeleroReconciler) ValidateBackupStorageLocations(log logr.Logger) (bool, error)
- func (r *VeleroReconciler) ValidateVolumeSnapshotLocations(log logr.Logger) (bool, error)
Constants ¶
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
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
const ( Restic = "restic" ResticRestoreHelperCM = "restic-restore-action-config" HostPods = "host-pods" )
const ( Server = "server" Registry = "Registry" //TODO: Check for default secret names VeleroAWSSecretName = "cloud-credentials" VeleroAzureSecretName = "cloud-credentials-azure" VeleroGCPSecretName = "cloud-credentials-gcp" )
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 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 ¶
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)