libstorage

package
v0.53.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 GetRWOBlockStorageClass() (string, bool)

func GetRWOFileSystemStorageClass

func GetRWOFileSystemStorageClass() (string, bool)

func GetRWXBlockStorageClass

func GetRWXBlockStorageClass() (string, bool)

func GetRWXFileSystemStorageClass

func GetRWXFileSystemStorageClass() (string, bool)

func GetSnapshotStorageClass

func GetSnapshotStorageClass() (string, bool)

func HasCDI

func HasCDI() bool

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

func LoadConfig

func LoadConfig() (*KubeVirtTestsConfiguration, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳