backendstorage

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PVCPrefix = "persistent-state-for-"
	PVCSize   = "10Mi"
)

Variables

This section is empty.

Functions

func CreateIfNeeded

func CreateIfNeeded(vmi *corev1.VirtualMachineInstance, clusterConfig *virtconfig.ClusterConfig, client kubecli.KubevirtClient) error

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 IsPVCReady added in v1.2.1

func IsPVCReady(vmi *corev1.VirtualMachineInstance, client kubecli.KubevirtClient, scStore cache.Store) (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

func PVCForVMI

func PVCForVMI(vmi *corev1.VirtualMachineInstance) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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