hostdisk

package
v0.59.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

View Source
const (
	EventReasonToleratedSmallPV = "ToleratedSmallPV"
	EventTypeToleratedSmallPV   = k8sv1.EventTypeNormal
)

Variables

This section is empty.

Functions

func GetMountedHostDiskDir added in v0.20.0

func GetMountedHostDiskDir(volumeName string) string

func GetMountedHostDiskDirFromHandler added in v0.44.2

func GetMountedHostDiskDirFromHandler(mountRoot, volumeName string) string

func GetMountedHostDiskPath added in v0.20.0

func GetMountedHostDiskPath(volumeName string, path string) string

func GetMountedHostDiskPathFromHandler added in v0.44.2

func GetMountedHostDiskPathFromHandler(mountRoot, volumeName, path string) string

func ReplacePVCByHostDisk

func ReplacePVCByHostDisk(vmi *v1.VirtualMachineInstance) error

Types

type DiskImgCreator added in v0.9.6

type DiskImgCreator struct {
	// contains filtered or unexported fields
}

func NewHostDiskCreator added in v0.9.6

func NewHostDiskCreator(recorder record.EventRecorder, lessPVCSpaceToleration int, minimumPVCReserveBytes uint64, mountRoot *safepath.Path) DiskImgCreator

func (DiskImgCreator) Create added in v0.9.6

func (hdc DiskImgCreator) Create(vmi *v1.VirtualMachineInstance) error

Jump to

Keyboard shortcuts

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