storage

package
v1.5.0-alpha.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const InvalidDataVolumeUrl = "docker://127.0.0.1/invalid:latest"

Variables

This section is empty.

Functions

func AddVolumeAndVerify added in v0.55.0

func AddVolumeAndVerify(virtClient kubecli.KubevirtClient, storageClass string, vm *v1.VirtualMachine, addVMIOnly bool) string

func CreateErrorDisk

func CreateErrorDisk(nodeName string) (address string, device string)

The tests using the function CreateErrorDisk need to be run serially as it relies on the kernel scsi_debug module

func CreateHostDisk added in v1.4.0

func CreateHostDisk(diskPath string) *k8sv1.Pod

func CreatePVandPVCwithFaultyDisk

func CreatePVandPVCwithFaultyDisk(nodeName, devicePath, namespace string) (*corev1.PersistentVolume, *corev1.PersistentVolumeClaim, error)

func CreatePVandPVCwithSCSIDisk

func CreatePVandPVCwithSCSIDisk(nodeName, devicePath, namespace, storageClass, pvName, pvcName string) (*corev1.PersistentVolume, *corev1.PersistentVolumeClaim, error)

func CreatePVwithSCSIDisk

func CreatePVwithSCSIDisk(storageClass, pvName, nodeName, devicePath string) (*corev1.PersistentVolume, error)

func CreateSCSIDisk

func CreateSCSIDisk(nodeName string, opts []string) (address string, device string)

CreateSCSIDisk creates a SCSI disk using the scsi_debug module. This function should be used only to check SCSI disk functionalities and not for creating a filesystem or any data. The disk is stored in ram and it isn't suitable for storing large amount of data. If a test uses this function, it needs to be run serially. The device is created directly on the node and the addition and removal of the scsi_debug kernel module could create flakiness

func FSIGDescribe

func FSIGDescribe(text string, args ...interface{}) bool

func FixErrorDevice

func FixErrorDevice(nodeName string)

func MatchConditionIgnoreTimeStamp added in v0.57.0

func MatchConditionIgnoreTimeStamp(expected interface{}) gomegatypes.GomegaMatcher

func PSIGDescribe added in v0.55.0

func PSIGDescribe(text string, args ...interface{}) bool

func RandHostDiskDir added in v1.4.0

func RandHostDiskDir() string

func RemoveHostDisk added in v1.4.0

func RemoveHostDisk(diskPath string, nodeName string) error

func RemoveSCSIDisk

func RemoveSCSIDisk(nodeName, address string)

func SIGDescribe

func SIGDescribe(text string, args ...interface{}) bool

Types

type ConditionNoTimeMatcher added in v0.57.0

type ConditionNoTimeMatcher struct {
	Cond interface{}
}

func (*ConditionNoTimeMatcher) FailureMessage added in v0.57.0

func (matcher *ConditionNoTimeMatcher) FailureMessage(actual interface{}) (message string)

func (*ConditionNoTimeMatcher) Match added in v0.57.0

func (matcher *ConditionNoTimeMatcher) Match(actual interface{}) (success bool, err error)

func (*ConditionNoTimeMatcher) NegatedFailureMessage added in v0.57.0

func (matcher *ConditionNoTimeMatcher) NegatedFailureMessage(actual interface{}) (message string)

type VMICreationFunc added in v0.41.0

type VMICreationFunc func(string) *v1.VirtualMachineInstance

Jump to

Keyboard shortcuts

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