volume

package
v0.0.0-...-d7ecc2e Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPVCProvisioner

func GetPVCProvisioner(host *api.Host, template *api.VolumeClaimTemplate) api.PVCProvisioner

func GetPVCReclaimPolicy

func GetPVCReclaimPolicy(host *api.Host, template *api.VolumeClaimTemplate) api.PVCReclaimPolicy

func GetVolumeClaimTemplate

func GetVolumeClaimTemplate(host *api.Host, volumeMount *core.VolumeMount) (*api.VolumeClaimTemplate, bool)

func OperatorShouldCreatePVC

func OperatorShouldCreatePVC(host *api.Host, volumeClaimTemplate *api.VolumeClaimTemplate) bool

OperatorShouldCreatePVC checks whether operator should create PVC for specified volumeCLimaTemplate

Types

type PVCDeleter

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

func NewPVCDeleter

func NewPVCDeleter(namer iNamer) *PVCDeleter

func (*PVCDeleter) HostCanDeleteAllPVCs

func (d *PVCDeleter) HostCanDeleteAllPVCs(host *api.Host) bool

HostCanDeleteAllPVCs checks whether all PVCs can be deleted

func (*PVCDeleter) HostCanDeletePVC

func (d *PVCDeleter) HostCanDeletePVC(host *api.Host, pvcName string) bool

HostCanDeletePVC checks whether PVC on a host can be deleted

Jump to

Keyboard shortcuts

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