Documentation ¶
Index ¶
- Constants
- func HasPersistentEFI(vmiSpec *corev1.VirtualMachineInstanceSpec) bool
- func HasPersistentTPMDevice(vmiSpec *corev1.VirtualMachineInstanceSpec) bool
- func IsBackendStorageNeededForVM(vm *corev1.VirtualMachine) bool
- func IsBackendStorageNeededForVMI(vmiSpec *corev1.VirtualMachineInstanceSpec) bool
- func PVCForVMI(vmi *corev1.VirtualMachineInstance) string
- type BackendStorage
Constants ¶
View Source
const ( PVCPrefix = "persistent-state-for-" PVCSize = "10Mi" )
Variables ¶
This section is empty.
Functions ¶
func HasPersistentEFI ¶ added in v1.1.0
func HasPersistentEFI(vmiSpec *corev1.VirtualMachineInstanceSpec) bool
func HasPersistentTPMDevice ¶
func HasPersistentTPMDevice(vmiSpec *corev1.VirtualMachineInstanceSpec) bool
func IsBackendStorageNeededForVM ¶
func IsBackendStorageNeededForVM(vm *corev1.VirtualMachine) bool
func IsBackendStorageNeededForVMI ¶ added in v1.1.0
func IsBackendStorageNeededForVMI(vmiSpec *corev1.VirtualMachineInstanceSpec) bool
func PVCForVMI ¶
func PVCForVMI(vmi *corev1.VirtualMachineInstance) string
Types ¶
type BackendStorage ¶ added in v1.3.0
type BackendStorage struct {
// contains filtered or unexported fields
}
func NewBackendStorage ¶ added in v1.3.0
func NewBackendStorage(client kubecli.KubevirtClient, clusterConfig *virtconfig.ClusterConfig, scStore cache.Store, spStore cache.Store, pvcIndexer cache.Indexer) *BackendStorage
func (*BackendStorage) CreateIfNeededAndUpdateVolumeStatus ¶ added in v1.3.0
func (bs *BackendStorage) CreateIfNeededAndUpdateVolumeStatus(vmi *corev1.VirtualMachineInstance) error
func (*BackendStorage) IsPVCReady ¶ added in v1.3.0
func (bs *BackendStorage) IsPVCReady(vmi *corev1.VirtualMachineInstance) (bool, error)
IsPVCReady returns true if either: - No PVC is needed for the VMI since it doesn't use backend storage - The backend storage PVC is bound - The backend storage PVC is pending uses a WaitForFirstConsumer storage class
Click to show internal directories.
Click to hide internal directories.