velero

package
v1.10.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeSystemNamespace           = "kube-system"
	VSphereCSIControllerNamespace = "vmware-system-csi"
)
View Source
const BackupObjectsPrefix = "backups"
View Source
const PluginsObjectsPrefix = "plugins"
View Source
const RestoreObjectsPrefix = "restores"

Variables

This section is empty.

Functions

func ApplyCRDs added in v1.10.0

func ApplyCRDs(ctx context.Context, veleroCLI string) ([]string, error)

func BackupRepositoriesCountShouldBe added in v1.10.0

func BackupRepositoriesCountShouldBe(ctx context.Context, veleroNamespace, targetNamespace string, expectedCount int) error

func CheckBackupWithResourceOrder added in v1.9.0

func CheckBackupWithResourceOrder(ctx context.Context, veleroCLI, veleroNamespace, backupName string, order map[string]string) error

func CheckScheduleWithResourceOrder added in v1.9.0

func CheckScheduleWithResourceOrder(ctx context.Context, veleroCLI, veleroNamespace, scheduleName string, order map[string]string) error

func CheckVeleroVersion

func CheckVeleroVersion(ctx context.Context, veleroCLI string, expectedVer string) error

func DeleteBackupResource

func DeleteBackupResource(ctx context.Context, veleroCLI string, backupName string) error

func DeleteBackups added in v1.10.0

func DeleteBackups(ctx context.Context, client TestClient) error

func DeleteBslResource added in v1.9.0

func DeleteBslResource(ctx context.Context, veleroCLI string, bslName string) error

func GetAllBackups added in v1.9.0

func GetAllBackups(ctx context.Context, veleroCLI string) ([]string, error)

func GetBackup added in v1.9.0

func GetBackup(ctx context.Context, veleroCLI string, backupName string) (string, string, error)

func GetBackupTTL added in v1.9.0

func GetBackupTTL(ctx context.Context, veleroNamespace, backupName string) (string, error)

func GetBackupsCreationTime added in v1.10.0

func GetBackupsCreationTime(ctx context.Context, veleroCLI, bslName string) ([]string, error)

func GetBackupsFromBsl added in v1.9.0

func GetBackupsFromBsl(ctx context.Context, veleroCLI, bslName string) ([]string, error)

func GetPVB added in v1.11.0

func GetPVB(ctx context.Context, veleroNamespace, namespace string) ([]string, error)

func GetPVR added in v1.11.0

func GetPVR(ctx context.Context, veleroNamespace, namespace string) ([]string, error)

func GetProviderPluginsByVersion added in v1.9.0

func GetProviderPluginsByVersion(version, providerName, feature string) ([]string, error)

func GetResticRepositories added in v1.9.0

func GetResticRepositories(ctx context.Context, veleroNamespace, targetNamespace string) ([]string, error)

func GetSchedule added in v1.10.0

func GetSchedule(ctx context.Context, veleroNamespace, scheduleName string) (string, error)

func GetScheduledBackupsCreationTime added in v1.10.0

func GetScheduledBackupsCreationTime(ctx context.Context, veleroCLI, bslName, scheduleName string) ([]string, error)

func GetSnapshotCheckPoint added in v1.9.0

func GetSnapshotCheckPoint(client TestClient, VeleroCfg VeleroConfig, expectCount int, namespaceBackedUp, backupName string, kibishiiPodNameList []string) (SnapshotCheckPoint, error)

func GetVeleroResource added in v1.11.0

func GetVeleroResource(ctx context.Context, veleroNamespace, namespace, resourceName string) ([]string, error)

func GetVersionList added in v1.10.0

func GetVersionList(veleroCli, veleroVersion string) []VeleroCLI2Version

func GetVsphereSnapshotIDs added in v1.9.0

func GetVsphereSnapshotIDs(ctx context.Context, timeout time.Duration, namespace string, podNameList []string) ([]string, error)

func InstallVeleroCLI

func InstallVeleroCLI(version string) (string, error)

func IsBackupExist added in v1.9.0

func IsBackupExist(ctx context.Context, veleroCLI string, backupName string) (bool, error)

func IsSupportUploaderType added in v1.11.0

func IsSupportUploaderType(version string) (bool, error)

func RunDebug

func RunDebug(ctx context.Context, veleroCLI, veleroNamespace, backup, restore string)

func SnapshotCRsCountShouldBe added in v1.9.0

func SnapshotCRsCountShouldBe(ctx context.Context, namespace, backupName string, expectedCount int) error

func UpdateNodeAgent added in v1.10.0

func UpdateNodeAgent(ctx context.Context, veleroCfg VeleroConfig, dsjson string) ([]string, error)

func UpdateVeleroDeployment added in v1.10.0

func UpdateVeleroDeployment(ctx context.Context, veleroCfg VeleroConfig) ([]string, error)

func VeleroAddPluginsForProvider

func VeleroAddPluginsForProvider(ctx context.Context, veleroCLI string, veleroNamespace string, provider string, addPlugins, feature string) error

VeleroAddPluginsForProvider determines which plugins need to be installed for a provider and installs them in the current Velero installation, skipping over those that are already installed.

func VeleroBackupDelete added in v1.9.0

func VeleroBackupDelete(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string) error

func VeleroBackupExcludeNamespaces

func VeleroBackupExcludeNamespaces(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string, excludeNamespaces []string) error

VeleroBackupExcludeNamespaces uses the veleroCLI to backup a namespace.

func VeleroBackupExec

func VeleroBackupExec(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string, args []string) error

func VeleroBackupIncludeNamespaces

func VeleroBackupIncludeNamespaces(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string, includeNamespaces []string) error

VeleroBackupIncludeNamespaces uses the veleroCLI to backup a namespace.

func VeleroBackupLogs

func VeleroBackupLogs(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string) error

func VeleroBackupNamespace

func VeleroBackupNamespace(ctx context.Context, veleroCLI, veleroNamespace string, backupCfg BackupConfig) error

VeleroBackupNamespace uses the veleroCLI to backup a namespace.

func VeleroCmdExec

func VeleroCmdExec(ctx context.Context, veleroCLI string, args []string) error

func VeleroCreateBackupLocation

func VeleroCreateBackupLocation(ctx context.Context,
	veleroCLI,
	veleroNamespace,
	name,
	objectStoreProvider,
	bucket,
	prefix,
	config,
	secretName,
	secretKey string,
) error

func VeleroInstall

func VeleroInstall(ctx context.Context, veleroCfg *VeleroConfig) error

func VeleroRestore

func VeleroRestore(ctx context.Context, veleroCLI, veleroNamespace, restoreName, backupName, includeResources string) error

VeleroRestore uses the VeleroCLI to restore from a Velero backup.

func VeleroRestoreDelete added in v1.9.0

func VeleroRestoreDelete(ctx context.Context, veleroCLI string, veleroNamespace string, restoreName string) error

func VeleroRestoreExec

func VeleroRestoreExec(ctx context.Context, veleroCLI, veleroNamespace, restoreName string, args []string, phaseExpect velerov1api.RestorePhase) error

func VeleroScheduleCreate added in v1.9.0

func VeleroScheduleCreate(ctx context.Context, veleroCLI string, veleroNamespace string, scheduleName string, args []string) error

func VeleroScheduleDelete added in v1.9.0

func VeleroScheduleDelete(ctx context.Context, veleroCLI string, veleroNamespace string, scheduleName string) error

func VeleroSchedulePause added in v1.10.0

func VeleroSchedulePause(ctx context.Context, veleroCLI string, veleroNamespace string, scheduleName string) error

func VeleroScheduleUnpause added in v1.10.0

func VeleroScheduleUnpause(ctx context.Context, veleroCLI string, veleroNamespace string, scheduleName string) error

func VeleroUninstall

func VeleroUninstall(ctx context.Context, cli, namespace string) error

func VeleroUpgrade added in v1.10.0

func VeleroUpgrade(ctx context.Context, veleroCfg VeleroConfig) error

func VeleroVersion added in v1.10.0

func VeleroVersion(ctx context.Context, veleroCLI, veleroNamespace string) error

func WaitBackupDeleted added in v1.9.0

func WaitBackupDeleted(ctx context.Context, veleroCLI string, backupName string, timeout time.Duration) error

func WaitForBackupToBeCreated added in v1.9.0

func WaitForBackupToBeCreated(ctx context.Context, veleroCLI string, backupName string, timeout time.Duration) error

func WaitForBackupToBeDeleted added in v1.9.0

func WaitForBackupToBeDeleted(ctx context.Context, veleroCLI string, backupName string, timeout time.Duration) error

func WaitForBackupsToBeDeleted added in v1.9.0

func WaitForBackupsToBeDeleted(ctx context.Context, veleroCLI string, backups []string, timeout time.Duration) error

func WaitForExpectedStateOfBackup added in v1.9.0

func WaitForExpectedStateOfBackup(ctx context.Context, veleroCLI string, backupName string,
	timeout time.Duration, existing bool) error

func WaitForVSphereUploadCompletion

func WaitForVSphereUploadCompletion(ctx context.Context, timeout time.Duration, namespace string, expectCount int) error

WaitForVSphereUploadCompletion waits for uploads started by the Velero Plug-in for vSphere to complete TODO - remove after upload progress monitoring is implemented

Types

This section is empty.

Jump to

Keyboard shortcuts

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