Documentation ¶
Index ¶
- Constants
- func GetMountedHostDiskDir(volumeName string) string
- func GetMountedHostDiskDirFromHandler(mountRoot, volumeName string) string
- func GetMountedHostDiskPath(volumeName string, path string) string
- func GetMountedHostDiskPathFromHandler(mountRoot, volumeName, path string) string
- func ReplacePVCByHostDisk(vmi *v1.VirtualMachineInstance) error
- type DiskImgCreator
Constants ¶
View Source
const ( EventReasonToleratedSmallPV = "ToleratedSmallPV" EventTypeToleratedSmallPV = k8sv1.EventTypeNormal )
Variables ¶
This section is empty.
Functions ¶
func GetMountedHostDiskDir ¶ added in v0.20.0
func GetMountedHostDiskDirFromHandler ¶ added in v0.44.2
func GetMountedHostDiskPath ¶ added in v0.20.0
func GetMountedHostDiskPathFromHandler ¶ added in v0.44.2
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
Click to show internal directories.
Click to hide internal directories.