Documentation
¶
Index ¶
- func AddDataVolumeDisk(vmi *v13.VirtualMachineInstance, diskName, dataVolumeName string) *v13.VirtualMachineInstance
- func AddDataVolumeTemplate(vm *v13.VirtualMachine, dataVolume *v1beta1.DataVolume)
- func CreateStorageClass(name string, bindingMode *v1.VolumeBindingMode)
- 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 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
- type KubeVirtTestsConfiguration
Constants ¶
This section is empty.
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 CreateStorageClass ¶
func CreateStorageClass(name string, bindingMode *v1.VolumeBindingMode)
func DeleteStorageClass ¶
func DeleteStorageClass(name string)
func GetRWOBlockStorageClass ¶
func GetRWXBlockStorageClass ¶
func GetSnapshotStorageClass ¶
func HasDataVolumeCRD ¶
func HasDataVolumeCRD() bool
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
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.