Documentation ¶
Index ¶
- func CheckBackupPhase(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func CheckRestorePhase(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func CreateNamespace(ctx context.Context, client *kubernetes.Clientset, namespace string) error
- func CreateSecretFromFiles(ctx context.Context, client *kubernetes.Clientset, namespace string, ...) error
- func EnsureClusterExists(ctx context.Context) error
- func GetProviderVeleroInstallOptions(pluginProvider, credentialsFile, objectStoreBucket, objectStorePrefix string, ...) (*cliinstall.InstallOptions, error)
- func InstallVeleroServer(io *cliinstall.InstallOptions) error
- func RunKibishiiTests(client *kubernetes.Clientset, ...) error
- func VeleroAddPluginsForProvider(ctx context.Context, veleroCLI string, veleroNamespace string, provider string) error
- func VeleroBackupLogs(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroBackupNamespace(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroCreateBackupLocation(ctx context.Context, veleroCLI string, veleroNamespace string, name string, ...) error
- func VeleroInstall(ctx context.Context, veleroImage string, veleroNamespace string, ...) error
- func VeleroRestore(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroRestoreLogs(ctx context.Context, veleroCLI string, veleroNamespace string, ...) error
- func VeleroUninstall(ctx context.Context, client *kubernetes.Clientset, ...) error
- func WaitForNamespaceDeletion(interval, timeout time.Duration, client *kubernetes.Clientset, ns string) error
- func WaitForPods(ctx context.Context, client *kubernetes.Clientset, namespace string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBackupPhase ¶
func CheckBackupPhase(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string, expectedPhase velerov1api.BackupPhase) error
CheckBackupPhase uses veleroCLI to inspect the phase of a Velero backup.
func CheckRestorePhase ¶
func CheckRestorePhase(ctx context.Context, veleroCLI string, veleroNamespace string, restoreName string, expectedPhase velerov1api.RestorePhase) error
CheckRestorePhase uses veleroCLI to inspect the phase of a Velero restore.
func CreateNamespace ¶
CreateNamespace creates a kubernetes namespace
func CreateSecretFromFiles ¶
func EnsureClusterExists ¶
EnsureClusterExists returns whether or not a kubernetes cluster exists for tests to be run on.
func GetProviderVeleroInstallOptions ¶
func GetProviderVeleroInstallOptions( pluginProvider, credentialsFile, objectStoreBucket, objectStorePrefix string, bslConfig, vslConfig string, plugins []string, features string, ) (*cliinstall.InstallOptions, error)
GetProviderVeleroInstallOptions returns Velero InstallOptions for the provider.
func InstallVeleroServer ¶
func InstallVeleroServer(io *cliinstall.InstallOptions) error
InstallVeleroServer installs velero in the cluster.
func RunKibishiiTests ¶
func RunKibishiiTests(client *kubernetes.Clientset, providerName, veleroCLI, veleroNamespace, backupName, restoreName, backupLocation string, useVolumeSnapshots bool) error
RunKibishiiTests runs kibishii tests on the provider.
func VeleroAddPluginsForProvider ¶
func VeleroAddPluginsForProvider(ctx context.Context, veleroCLI string, veleroNamespace string, provider 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 VeleroBackupLogs ¶
func VeleroBackupNamespace ¶
func VeleroBackupNamespace(ctx context.Context, veleroCLI string, veleroNamespace string, backupName string, namespace string, backupLocation string, useVolumeSnapshots bool) error
VeleroBackupNamespace uses the veleroCLI to backup a namespace.
func VeleroInstall ¶
func VeleroRestore ¶
func VeleroRestore(ctx context.Context, veleroCLI string, veleroNamespace string, restoreName string, backupName string) error
VeleroRestore uses the veleroCLI to restore from a Velero backup.
func VeleroRestoreLogs ¶
func VeleroUninstall ¶
func VeleroUninstall(ctx context.Context, client *kubernetes.Clientset, extensionsClient *apiextensionsclient.Clientset, veleroNamespace string) error
func WaitForNamespaceDeletion ¶
func WaitForNamespaceDeletion(interval, timeout time.Duration, client *kubernetes.Clientset, ns string) error
WaitForNamespaceDeletion Waits for namespace to be deleted.
func WaitForPods ¶
func WaitForPods(ctx context.Context, client *kubernetes.Clientset, namespace string, pods []string) error
Waits until all of the pods have gone to PodRunning state
Types ¶
This section is empty.