Documentation ¶
Index ¶
- func IsPVCBlockFromClient(client kubecli.KubevirtClient, namespace string, claimName string) (pvc *k8sv1.PersistentVolumeClaim, exists bool, isBlockDevice bool, err error)
- func IsPVCBlockFromStore(store cache.Store, namespace string, claimName string) (pvc *k8sv1.PersistentVolumeClaim, exists bool, isBlockDevice bool, err error)
- func IsPVCShared(pvc *k8sv1.PersistentVolumeClaim) bool
- func IsPreallocated(annotations map[string]string) bool
- func IsSharedPVCFromClient(client kubecli.KubevirtClient, namespace string, claimName string) (pvc *k8sv1.PersistentVolumeClaim, isShared bool, err error)
- func PVCNameFromVirtVolume(volume *virtv1.Volume) string
- func VirtVolumesToPVCMap(volumes []*virtv1.Volume, pvcStore cache.Store, namespace string) (map[string]*k8sv1.PersistentVolumeClaim, error)
- type CloneSource
- type PatchOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPVCBlockFromClient ¶
func IsPVCBlockFromClient(client kubecli.KubevirtClient, namespace string, claimName string) (pvc *k8sv1.PersistentVolumeClaim, exists bool, isBlockDevice bool, err error)
func IsPVCBlockFromStore ¶
func IsPVCShared ¶ added in v0.12.0
func IsPVCShared(pvc *k8sv1.PersistentVolumeClaim) bool
func IsPreallocated ¶ added in v0.40.0
func IsSharedPVCFromClient ¶ added in v0.12.0
func IsSharedPVCFromClient(client kubecli.KubevirtClient, namespace string, claimName string) (pvc *k8sv1.PersistentVolumeClaim, isShared bool, err error)
func PVCNameFromVirtVolume ¶ added in v0.44.1
Types ¶
type CloneSource ¶ added in v0.44.1
func GetCloneSource ¶ added in v0.44.1
func GetCloneSource(ctx context.Context, client kubecli.KubevirtClient, vm *virtv1.VirtualMachine, dvSpec *cdiv1.DataVolumeSpec) (*CloneSource, error)
type PatchOperation ¶ added in v0.42.0
Click to show internal directories.
Click to hide internal directories.