restore

package
v0.0.0-...-fc172d5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefTimeoutSecs                       = 180 // in seconds
	PreConditionFailedErrorSubstring     = "412 Precondition Failed"
	PoolNotReadyToTakeCloneOfSnapshot    = "Pool not ready to take clone of snapshot"
	NotReady                             = "is not Ready"
	RangeNotSatisfiable                  = "416 Range Not Satisfiable"
	CloneVolumeSizeErrorString           = "Cloned snapshot volume must match the snapshot size"
	BadRequest                           = "400 Bad Request"
	CloneVolumeThinErrorString           = "Cloned snapshot volumes must be thin provisioned"
	ErrorGettingHandleDataSource         = "error getting handle for DataSource"
	MultiReplicaRestore                  = "Cannot create a multi-replica volume from a snapshot of a single-replica volume"
	FailedToStageVolume                  = "Failed to stage volume"
	FailedToProvisionWithCrossVolumeMode = "snapshot.storage.kubernetes.io/allow-volume-mode-change annotation is not present on snapshotcontent"
	VolumeModeConversionAnnotationKey    = "snapshot.storage.kubernetes.io/allow-volume-mode-change"
	VolumeModeConversionAnnotationValue  = "true"
)

Functions

func IsWarningPodEventPresent

func IsWarningPodEventPresent(podName string, namespace string, errorSubstring string) (bool, error)

func IsWarningPvcEventPresent

func IsWarningPvcEventPresent(pvcName string, namespace string, errorSubstring string) (bool, error)

func VerifyRestoredVolumeList

func VerifyRestoredVolumeList(restVol map[string]common.Snapshot) (bool, error)

func WaitForPvcWarningEvent

func WaitForPvcWarningEvent(pvcName string, namespace string, errorSubstring string) (bool, error)

Wait for the PVC warning event return true if pvc warning event found else return false , it return error in case of error

Types

This section is empty.

Jump to

Keyboard shortcuts

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