tests, utils: Use `cdi.kubevirt.io/v1beta1` for datavolume
The `v1beta1` API version is available for some time now [1].
Use it instead of the `alpha` one and inline the constant as it is used
only once (there is also no added value in naming it using a constant).
[1]
@@ -124,7 +124,6 @@ const (
DefaultPvcMountPath = "/pvc"
StartingVMInstance = "Starting a VirtualMachineInstance"
WaitingVMInstanceStart = "Waiting until the VirtualMachineInstance will start"
- KubevirtIoV1Alpha1 = "cdi.kubevirt.io/v1alpha1"
CouldNotFindComputeContainer = "could not find compute container for pod"
EchoLastReturnValue = "echo $?\n"
BashHelloScript = "#!/bin/bash\necho 'hello'\n"
@@ -1765,7 +1764,7 @@ func newDataVolume(namespace, storageClass string, size string, accessMode k8sv1
}
dataVolume.TypeMeta = metav1.TypeMeta{
- APIVersion: KubevirtIoV1Alpha1,
+ APIVersion: "cdi.kubevirt.io/v1beta1",
Kind: "DataVolume",
}
