backendstorage

package
v1.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL