Documentation ¶
Index ¶
- Constants
- func AddDataVolume(vm *v13.VirtualMachine, diskName string, dataVolume *v1beta1.DataVolume)
- 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 *storagev1.VolumeBindingMode)
- func DeleteAllSeparateDeviceHostPathPvs()
- func DeleteDataVolume(dv **v1beta1.DataVolume)
- func DeletePV(os string)
- func DeletePVC(os string)
- func DeleteStorageClass(name string)
- func EventuallyDV(dv *v1beta1.DataVolume, timeoutSec int, matcher gomegatypes.GomegaMatcher)
- func EventuallyDVWith(namespace, name string, timeoutSec int, matcher gomegatypes.GomegaMatcher)
- func GetCDI(virtCli kubecli.KubevirtClient) *v1beta1.CDI
- func GetRWOBlockStorageClass() (string, bool)
- func GetRWOFileSystemStorageClass() (string, bool)
- func GetRWXBlockStorageClass() (string, bool)
- func GetRWXFileSystemStorageClass() (string, bool)
- func GetSnapshotStorageClass() (string, bool)
- func GoldenImageRBAC(namespace string) (*rbacv1.Role, *rbacv1.RoleBinding)
- func HasCDI() bool
- func HasDataVolumeCRD() bool
- func IsDataVolumeGC(virtCli kubecli.KubevirtClient) bool
- func IsStorageClassBindingModeWaitForFirstConsumer(sc string) bool
- func NewBlankDataVolume(namespace, storageClass, size string, accessMode v1.PersistentVolumeAccessMode, ...) *v1beta1.DataVolume
- func NewBlockDataVolumeWithRegistryImport(imageUrl, namespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
- func NewDataVolumeWithPVCSource(sourceNamespace, sourceName, targetNamespace string, ...) *v1beta1.DataVolume
- func NewDataVolumeWithRegistryImport(imageUrl, namespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
- func NewDataVolumeWithRegistryImportInStorageClass(imageUrl, namespace, storageClass string, ...) *v1beta1.DataVolume
- func NewPVC(name, size, storageClass string) *k8sv1.PersistentVolumeClaim
- func RenderPodWithPVC(name string, cmd []string, args []string, pvc *k8sv1.PersistentVolumeClaim) *k8sv1.Pod
- func SetDataVolumeGC(virtCli kubecli.KubevirtClient, ttlSec *int32)
- func SetDataVolumePVCSize(dv *v1beta1.DataVolume, size string)
- func SetDataVolumePVCStorageClass(dv *v1beta1.DataVolume, storageClass string)
- type KubeVirtTestsConfiguration
Constants ¶
View Source
const ( DefaultPvcMountPath = "/pvc" StorageClassHostPathSeparateDevice = "host-path-sd" )
Variables ¶
This section is empty.
Functions ¶
func AddDataVolume ¶ added in v0.57.0
func AddDataVolume(vm *v13.VirtualMachine, diskName string, dataVolume *v1beta1.DataVolume)
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 *storagev1.VolumeBindingMode)
func DeleteAllSeparateDeviceHostPathPvs ¶ added in v0.55.0
func DeleteAllSeparateDeviceHostPathPvs()
func DeleteDataVolume ¶ added in v0.57.0
func DeleteDataVolume(dv **v1beta1.DataVolume)
func DeleteStorageClass ¶
func DeleteStorageClass(name string)
func EventuallyDV ¶ added in v0.57.0
func EventuallyDV(dv *v1beta1.DataVolume, timeoutSec int, matcher gomegatypes.GomegaMatcher)
func EventuallyDVWith ¶ added in v0.57.0
func EventuallyDVWith(namespace, name string, timeoutSec int, matcher gomegatypes.GomegaMatcher)
func GetRWOBlockStorageClass ¶
func GetRWXBlockStorageClass ¶
func GetSnapshotStorageClass ¶
func GoldenImageRBAC ¶ added in v0.56.0
func GoldenImageRBAC(namespace string) (*rbacv1.Role, *rbacv1.RoleBinding)
func HasDataVolumeCRD ¶
func HasDataVolumeCRD() bool
func IsDataVolumeGC ¶ added in v0.57.0
func IsDataVolumeGC(virtCli kubecli.KubevirtClient) bool
func IsStorageClassBindingModeWaitForFirstConsumer ¶ added in v0.55.0
func NewBlankDataVolume ¶ added in v0.56.0
func NewBlankDataVolume(namespace, storageClass, size string, accessMode v1.PersistentVolumeAccessMode, volumeMode v1.PersistentVolumeMode) *v1beta1.DataVolume
func NewBlockDataVolumeWithRegistryImport ¶ added in v0.56.0
func NewBlockDataVolumeWithRegistryImport(imageUrl, namespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
func NewDataVolumeWithPVCSource ¶ added in v0.56.0
func NewDataVolumeWithPVCSource(sourceNamespace, sourceName, targetNamespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
func NewDataVolumeWithRegistryImport ¶ added in v0.56.0
func NewDataVolumeWithRegistryImport(imageUrl, namespace string, accessMode v1.PersistentVolumeAccessMode) *v1beta1.DataVolume
func NewDataVolumeWithRegistryImportInStorageClass ¶ added in v0.56.0
func NewDataVolumeWithRegistryImportInStorageClass(imageUrl, namespace, storageClass string, accessMode v1.PersistentVolumeAccessMode, volumeMode v1.PersistentVolumeMode) *v1beta1.DataVolume
func NewPVC ¶ added in v0.55.0
func NewPVC(name, size, storageClass string) *k8sv1.PersistentVolumeClaim
func RenderPodWithPVC ¶ added in v0.55.0
func SetDataVolumeGC ¶ added in v0.57.0
func SetDataVolumeGC(virtCli kubecli.KubevirtClient, ttlSec *int32)
func SetDataVolumePVCSize ¶ added in v0.56.0
func SetDataVolumePVCSize(dv *v1beta1.DataVolume, size string)
func SetDataVolumePVCStorageClass ¶ added in v0.56.0
func SetDataVolumePVCStorageClass(dv *v1beta1.DataVolume, storageClass string)
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.