Documentation
¶
Index ¶
- Constants
- func AddDataVolumeDisk(vmi *v13.VirtualMachineInstance, diskName, dataVolumeName string) *v13.VirtualMachineInstance
- func AddDataVolumeTemplate(vm *v13.VirtualMachine, dataVolume *v1beta1.DataVolume)
- func CheckNoProvisionerStorageClassPVs(storageClassName string, numExpectedPVs int)
- func CreateAllSeparateDeviceHostPathPvs(osName string)
- func CreateBlockPVC(name, size string) *k8sv1.PersistentVolumeClaim
- func CreateFSPVC(name, size string) *k8sv1.PersistentVolumeClaim
- func CreateHostPathPVC(os, size string)
- func CreateHostPathPv(osName, hostPath string) string
- func CreateHostPathPvWithSizeAndStorageClass(osName, hostPath, size, sc string) string
- func CreateNFSPvAndPvc(name string, namespace string, size string, nfsTargetIP string, os string)
- func CreatePVC(os, size, storageClass string, recycledPV bool) *k8sv1.PersistentVolumeClaim
- func CreateStorageClass(name string, bindingMode *v1.VolumeBindingMode)
- func DeleteAllSeparateDeviceHostPathPvs()
- func DeletePV(os string)
- func DeletePVC(os string)
- func DeleteStorageClass(name string)
- func GetRWOBlockStorageClass() (string, bool)
- func GetRWOFileSystemStorageClass() (string, bool)
- func GetRWXBlockStorageClass() (string, bool)
- func GetRWXFileSystemStorageClass() (string, bool)
- func GetSnapshotStorageClass() (string, bool)
- func HasCDI() bool
- func HasDataVolumeCRD() bool
- func IsStorageClassBindingModeWaitForFirstConsumer(sc string) bool
- func NewPVC(name, size, storageClass string) *k8sv1.PersistentVolumeClaim
- func NewRandomBlankDataVolume(namespace, storageClass, size string, accessMode v1.PersistentVolumeAccessMode, ...) *v1beta1.DataVolume
- func NewRandomBlockDataVolumeWithRegistryImport(imageUrl, namespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
- func NewRandomDataVolumeWithPVCSource(sourceNamespace, sourceName, targetNamespace string, ...) *v1beta1.DataVolume
- func NewRandomDataVolumeWithRegistryImport(imageUrl, namespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
- func NewRandomDataVolumeWithRegistryImportInStorageClass(imageUrl, namespace, storageClass string, ...) *v1beta1.DataVolume
- func RenderPodWithPVC(name string, cmd []string, args []string, pvc *k8sv1.PersistentVolumeClaim) *k8sv1.Pod
- type KubeVirtTestsConfiguration
Constants ¶
View Source
const ( DefaultPvcMountPath = "/pvc" StorageClassHostPathSeparateDevice = "host-path-sd" )
Variables ¶
This section is empty.
Functions ¶
func AddDataVolumeDisk ¶
func AddDataVolumeDisk(vmi *v13.VirtualMachineInstance, diskName, dataVolumeName string) *v13.VirtualMachineInstance
func AddDataVolumeTemplate ¶
func AddDataVolumeTemplate(vm *v13.VirtualMachine, dataVolume *v1beta1.DataVolume)
func CheckNoProvisionerStorageClassPVs ¶ added in v0.55.0
func CreateAllSeparateDeviceHostPathPvs ¶ added in v0.55.0
func CreateAllSeparateDeviceHostPathPvs(osName string)
func CreateBlockPVC ¶ added in v0.55.0
func CreateBlockPVC(name, size string) *k8sv1.PersistentVolumeClaim
func CreateFSPVC ¶ added in v0.55.0
func CreateFSPVC(name, size string) *k8sv1.PersistentVolumeClaim
func CreateHostPathPVC ¶ added in v0.55.0
func CreateHostPathPVC(os, size string)
func CreateHostPathPv ¶ added in v0.55.0
func CreateHostPathPvWithSizeAndStorageClass ¶ added in v0.55.0
func CreateNFSPvAndPvc ¶ added in v0.55.0
func CreatePVC ¶ added in v0.55.0
func CreatePVC(os, size, storageClass string, recycledPV bool) *k8sv1.PersistentVolumeClaim
func CreateStorageClass ¶
func CreateStorageClass(name string, bindingMode *v1.VolumeBindingMode)
func DeleteAllSeparateDeviceHostPathPvs ¶ added in v0.55.0
func DeleteAllSeparateDeviceHostPathPvs()
func DeleteStorageClass ¶
func DeleteStorageClass(name string)
func GetRWOBlockStorageClass ¶
func GetRWXBlockStorageClass ¶
func GetSnapshotStorageClass ¶
func HasDataVolumeCRD ¶
func HasDataVolumeCRD() bool
func IsStorageClassBindingModeWaitForFirstConsumer ¶ added in v0.55.0
func NewPVC ¶ added in v0.55.0
func NewPVC(name, size, storageClass string) *k8sv1.PersistentVolumeClaim
func NewRandomBlankDataVolume ¶
func NewRandomBlankDataVolume(namespace, storageClass, size string, accessMode v1.PersistentVolumeAccessMode, volumeMode v1.PersistentVolumeMode) *v1beta1.DataVolume
func NewRandomBlockDataVolumeWithRegistryImport ¶
func NewRandomBlockDataVolumeWithRegistryImport(imageUrl, namespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
func NewRandomDataVolumeWithPVCSource ¶
func NewRandomDataVolumeWithPVCSource(sourceNamespace, sourceName, targetNamespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
func NewRandomDataVolumeWithRegistryImport ¶
func NewRandomDataVolumeWithRegistryImport(imageUrl, namespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
func NewRandomDataVolumeWithRegistryImportInStorageClass ¶
func NewRandomDataVolumeWithRegistryImportInStorageClass(imageUrl, namespace, storageClass string, accessMode v1.PersistentVolumeAccessMode, volumeMode v1.PersistentVolumeMode) *v1beta1.DataVolume
func RenderPodWithPVC ¶ added in v0.55.0
Types ¶
type KubeVirtTestsConfiguration ¶
type KubeVirtTestsConfiguration struct { // StorageClass to use to create rhel PVCs StorageClassRhel string `json:"storageClassRhel"` // StorageClass to use to create windows PVCs StorageClassWindows string `json:"storageClassWindows"` // StorageClass supporting RWX Filesystem StorageRWXFileSystem string `json:"storageRWXFileSystem"` // StorageClass supporting RWX Block StorageRWXBlock string `json:"storageRWXBlock"` // StorageClass supporting RWO Filesystem StorageRWOFileSystem string `json:"storageRWOFileSystem"` // StorageClass supporting RWO Block StorageRWOBlock string `json:"storageRWOBlock"` // StorageClass supporting snapshot StorageSnapshot string `json:"storageSnapshot"` }
KubeVirtTestsConfiguration contains the configuration for KubeVirt tests
var Config *KubeVirtTestsConfiguration
func LoadConfig ¶
func LoadConfig() (*KubeVirtTestsConfiguration, error)
Click to show internal directories.
Click to hide internal directories.