Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyCRDs(ctx context.Context, veleroCLI string) ([]string, error)
- func BackupRepositoriesCountShouldBe(ctx context.Context, veleroNamespace, targetNamespace string, ...) error
- func CheckBackupWithResourceOrder(ctx context.Context, veleroCLI, veleroNamespace, backupName string, ...) error
- func CheckScheduleWithResourceOrder(ctx context.Context, veleroCLI, veleroNamespace, scheduleName string, ...) error
- func CheckVeleroVersion(ctx context.Context, veleroCLI string, expectedVer string) error
- func CleanAllRetainedPV(ctx context.Context, client TestClient)
- func DeleteAllBackups(ctx context.Context, veleroCfg *VeleroConfig) error
- func DeleteBackup(ctx context.Context, backupName string, velerocfg *VeleroConfig) error
- func DeleteBackups(ctx context.Context, backupNames []string, veleroCfg *VeleroConfig) error
- func DeleteBslResource(ctx context.Context, veleroCLI string, bslName string) error
- func DeletePVs(ctx context.Context, client TestClient, pvList []string) error
- func GetAllBackups(ctx context.Context, veleroCLI string) ([]string, error)
- func GetBackup(ctx context.Context, backupName string, veleroCfg *VeleroConfig) (string, string, error)
- func GetBackupTTL(ctx context.Context, veleroNamespace, backupName string) (string, error)
- func GetBackupsForSchedule(ctx context.Context, client kbclient.Client, scheduleName string, ...) ([]velerov1api.Backup, error)
- func GetBackupsFromBsl(ctx context.Context, veleroCLI, bslName string) ([]string, error)
- func GetLatestSuccessBackupsFromBSL(ctx context.Context, veleroCLI, bslName string) (string, error)
- func GetPVB(ctx context.Context, veleroNamespace, namespace string) ([]string, error)
- func GetPVR(ctx context.Context, veleroNamespace, namespace string) ([]string, error)
- func GetPvName(ctx context.Context, client TestClient, pvcName, namespace string) (string, error)
- func GetRepositories(ctx context.Context, veleroNamespace, targetNamespace string) ([]string, error)
- func GetSchedule(ctx context.Context, veleroNamespace, scheduleName string) (string, error)
- func GetSnapshotCheckPoint(client TestClient, veleroCfg VeleroConfig, expectCount int, ...) (SnapshotCheckPoint, error)
- func GetVeleroPodName(ctx context.Context) ([]string, error)
- func GetVeleroResource(ctx context.Context, veleroNamespace, namespace, resourceName string) ([]string, error)
- func GetVeleroVersion(ctx context.Context, veleroCLI string, clientOnly bool) (string, error)
- func GetVersionList(veleroCli, veleroVersion string) []VeleroCLI2Version
- func GetVsphereSnapshotIDs(ctx context.Context, timeout time.Duration, namespace string, ...) ([]string, error)
- func InstallStorageClasses(provider string) error
- func InstallVeleroCLI(version string) (string, error)
- func IsBackupExist(ctx context.Context, backupName string, veleroCfg *VeleroConfig) (bool, error)
- func IsSupportUploaderType(version string) (bool, error)
- func IsVeleroReady(ctx context.Context, veleroCfg *test.VeleroConfig) (bool, error)
- func KubectlGetAllDeleteBackupRequest(ctx context.Context, backupName, veleroNamespace string) ([]string, error)
- func KubectlGetBackupRepository(ctx context.Context, uploaderType, veleroNamespace string) ([]string, error)
- func KubectlGetDeleteBackupRequestDetails(ctx context.Context, deleteBackupRequest, veleroNamespace string) (string, error)
- func KubectlGetDeleteBackupRequestStatus(ctx context.Context, deleteBackupRequest, veleroNamespace string) (string, error)
- func KubectlGetPodVolumeBackup(ctx context.Context, backupName, veleroNamespace string) ([]string, error)
- func ListVeleroPods(ctx context.Context, veleroNamespace string) ([]string, error)
- func PrepareVelero(ctx context.Context, caseName string, veleroCfg test.VeleroConfig) error
- func RunDebug(ctx context.Context, veleroCLI, veleroNamespace, backup, restore string)
- func SetImagesToDefaultValues(config VeleroConfig, version string) (VeleroConfig, error)
- func SnapshotCRsCountShouldBe(ctx context.Context, namespace, backupName string, expectedCount int) error
- func UpdateNodeAgent(ctx context.Context, veleroCfg VeleroConfig, dsjson string) ([]string, error)
- func UpdateVeleroDeployment(ctx context.Context, veleroCfg VeleroConfig) ([]string, error)
- func VeleroAddPluginsForProvider(ctx context.Context, veleroCLI string, veleroNamespace string, provider string, ...) error
- func VeleroBackupDelete(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupExcludeNamespaces(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupExec(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupIncludeNamespaces(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupLogs(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupNamespace(ctx context.Context, veleroCLI, veleroNamespace string, backupCfg BackupConfig) error
- func VeleroCmdExec(ctx context.Context, veleroCLI string, args []string) error
- func VeleroCreateBackupLocation(ctx context.Context, ...) error
- func VeleroInstall(ctx context.Context, veleroCfg *test.VeleroConfig, isStandbyCluster bool) error
- func VeleroRestore(ctx context.Context, ...) error
- func VeleroRestoreDelete(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroRestoreExec(ctx context.Context, veleroCLI, veleroNamespace, restoreName string, ...) error
- func VeleroScheduleCreate(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroScheduleDelete(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroSchedulePause(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroScheduleUnpause(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroUninstall(ctx context.Context, veleroCfg test.VeleroConfig) error
- func VeleroUpgrade(ctx context.Context, veleroCfg VeleroConfig) error
- func VeleroVersion(ctx context.Context, veleroCLI, veleroNamespace string) error
- func WaitBackupDeleted(ctx context.Context, backupName string, timeout time.Duration, ...) error
- func WaitForBackupToBeCreated(ctx context.Context, backupName string, timeout time.Duration, ...) error
- func WaitForBackupToBeDeleted(ctx context.Context, backupName string, timeout time.Duration, ...) error
- func WaitForBackupsToBeDeleted(ctx context.Context, backups []string, timeout time.Duration, ...) error
- func WaitForExpectedStateOfBackup(ctx context.Context, backupName string, timeout time.Duration, existing bool, ...) error
- func WaitForVSphereUploadCompletion(ctx context.Context, timeout time.Duration, namespace string, expectCount int) error
Constants ¶
const BackupObjectsPrefix = "backups"
const PluginsObjectsPrefix = "plugins"
const RestoreObjectsPrefix = "restores"
Variables ¶
var ImagesMatrix = map[string]map[string][]string{
"v1.10": {
"aws": {"gcr.io/velero-gcp/velero-plugin-for-aws:v1.6.0"},
"azure": {"gcr.io/velero-gcp/velero-plugin-for-microsoft-azure:v1.6.0"},
"vsphere": {"gcr.io/velero-gcp/velero-plugin-for-vsphere:v1.5.1"},
"gcp": {"gcr.io/velero-gcp/velero-plugin-for-gcp:v1.6.0"},
"csi": {"gcr.io/velero-gcp/velero-plugin-for-csi:v0.4.0"},
"velero": {"gcr.io/velero-gcp/velero:v1.10.2"},
"velero-restore-helper": {"gcr.io/velero-gcp/velero-restore-helper:v1.10.2"},
},
"v1.11": {
"aws": {"gcr.io/velero-gcp/velero-plugin-for-aws:v1.7.0"},
"azure": {"gcr.io/velero-gcp/velero-plugin-for-microsoft-azure:v1.7.0"},
"vsphere": {"gcr.io/velero-gcp/velero-plugin-for-vsphere:v1.5.1"},
"gcp": {"gcr.io/velero-gcp/velero-plugin-for-gcp:v1.7.0"},
"csi": {"gcr.io/velero-gcp/velero-plugin-for-csi:v0.5.0"},
"velero": {"gcr.io/velero-gcp/velero:v1.11.1"},
"velero-restore-helper": {"gcr.io/velero-gcp/velero-restore-helper:v1.11.1"},
},
"v1.12": {
"aws": {"gcr.io/velero-gcp/velero-plugin-for-aws:v1.8.0"},
"azure": {"gcr.io/velero-gcp/velero-plugin-for-microsoft-azure:v1.8.0"},
"vsphere": {"gcr.io/velero-gcp/velero-plugin-for-vsphere:v1.5.1"},
"gcp": {"gcr.io/velero-gcp/velero-plugin-for-gcp:v1.8.0"},
"csi": {"gcr.io/velero-gcp/velero-plugin-for-csi:v0.6.0"},
"velero": {"gcr.io/velero-gcp/velero:v1.12.4"},
"velero-restore-helper": {"gcr.io/velero-gcp/velero-restore-helper:v1.12.4"},
},
"v1.13": {
"aws": {"gcr.io/velero-gcp/velero-plugin-for-aws:v1.9.2"},
"azure": {"gcr.io/velero-gcp/velero-plugin-for-microsoft-azure:v1.9.2"},
"vsphere": {"gcr.io/velero-gcp/velero-plugin-for-vsphere:v1.5.2"},
"gcp": {"gcr.io/velero-gcp/velero-plugin-for-gcp:v1.9.2"},
"csi": {"gcr.io/velero-gcp/velero-plugin-for-csi:v0.7.1"},
"datamover": {"gcr.io/velero-gcp/velero-plugin-for-aws:v1.9.2"},
"velero": {"gcr.io/velero-gcp/velero:v1.13.2"},
"velero-restore-helper": {"gcr.io/velero-gcp/velero-restore-helper:v1.13.2"},
},
"v1.14": {
"aws": {"gcr.io/velero-gcp/velero-plugin-for-aws:v1.10.1"},
"azure": {"gcr.io/velero-gcp/velero-plugin-for-microsoft-azure:v1.10.1"},
"vsphere": {"gcr.io/velero-gcp/velero-plugin-for-vsphere:v1.5.2"},
"gcp": {"gcr.io/velero-gcp/velero-plugin-for-gcp:v1.10.1"},
"datamover": {"gcr.io/velero-gcp/velero-plugin-for-aws:v1.10.1"},
"velero": {"gcr.io/velero-gcp/velero:v1.14.1"},
"velero-restore-helper": {"gcr.io/velero-gcp/velero-restore-helper:v1.14.1"},
},
"v1.15": {
"aws": {"gcr.io/velero-gcp/velero-plugin-for-aws:v1.11.0"},
"azure": {"gcr.io/velero-gcp/velero-plugin-for-microsoft-azure:v1.11.0"},
"vsphere": {"gcr.io/velero-gcp/velero-plugin-for-vsphere:v1.5.2"},
"gcp": {"gcr.io/velero-gcp/velero-plugin-for-gcp:v1.11.0"},
"datamover": {"gcr.io/velero-gcp/velero-plugin-for-aws:v1.11.0"},
"velero": {"gcr.io/velero-gcp/velero:v1.15.0"},
"velero-restore-helper": {"gcr.io/velero-gcp/velero-restore-helper:v1.15.0"},
},
"main": {
"aws": {"gcr.io/velero-gcp/velero-plugin-for-aws:main"},
"azure": {"gcr.io/velero-gcp/velero-plugin-for-microsoft-azure:main"},
"vsphere": {"gcr.io/velero-gcp/velero-plugin-for-vsphere:v1.5.2"},
"gcp": {"gcr.io/velero-gcp/velero-plugin-for-gcp:main"},
"datamover": {"gcr.io/velero-gcp/velero-plugin-for-aws:main"},
"velero": {"gcr.io/velero-gcp/velero:main"},
"velero-restore-helper": {"gcr.io/velero-gcp/velero-restore-helper:main"},
},
}
Functions ¶
func CheckVeleroVersion ¶
func CleanAllRetainedPV ¶
func DeleteAllBackups ¶
func DeleteBackup ¶
func DeleteBackups ¶
func DeleteBslResource ¶
func GetBackupTTL ¶
func GetBackupsForSchedule ¶
func GetBackupsFromBsl ¶
func GetRepositories ¶
func GetSchedule ¶
func GetSnapshotCheckPoint ¶
func GetVeleroResource ¶
func GetVeleroVersion ¶
func GetVersionList ¶
func GetVersionList(veleroCli, veleroVersion string) []VeleroCLI2Version
func GetVsphereSnapshotIDs ¶
func InstallStorageClasses ¶
InstallStorageClasses create the "e2e-storage-class" and "e2e-storage-class-2" StorageClasses for E2E tests.
e2e-storage-class is the default StorageClass for E2E. e2e-storage-class-2 is used for the StorageClass mapping test case. Kibishii StorageClass is not covered here.
func InstallVeleroCLI ¶
func IsBackupExist ¶
func IsSupportUploaderType ¶
func IsVeleroReady ¶
func ListVeleroPods ¶
func PrepareVelero ¶
func UpdateNodeAgent ¶
func UpdateVeleroDeployment ¶
func VeleroAddPluginsForProvider ¶
func VeleroAddPluginsForProvider(ctx context.Context, veleroCLI string, veleroNamespace string, provider string, plugin 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 ¶
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 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 VeleroBackupNamespace ¶
func VeleroBackupNamespace(ctx context.Context, veleroCLI, veleroNamespace string, backupCfg BackupConfig) error
VeleroBackupNamespace uses the veleroCLI to backup a namespace.
func VeleroInstall ¶
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 ¶
func VeleroRestoreExec ¶
func VeleroRestoreExec(ctx context.Context, veleroCLI, veleroNamespace, restoreName string, args []string, phaseExpect velerov1api.RestorePhase) error
func VeleroScheduleCreate ¶
func VeleroScheduleDelete ¶
func VeleroSchedulePause ¶
func VeleroScheduleUnpause ¶
func VeleroUninstall ¶
func VeleroUninstall(ctx context.Context, veleroCfg test.VeleroConfig) error
func VeleroUpgrade ¶
func VeleroVersion ¶
func WaitBackupDeleted ¶
func WaitForVSphereUploadCompletion ¶
func WaitForVSphereUploadCompletion(ctx context.Context, timeout time.Duration, namespace string, expectCount int) error
WaitForVSphereUploadCompletion waits for uploads started by the Velero Plugin for vSphere to complete TODO - remove after upload progress monitoring is implemented
Types ¶
This section is empty.