vsphere_volume

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StoragePolicyName = "storagepolicyname"

	// hostfailurestotolerate parameter is deprecated as of Kubernetes v1.19.0
	HostFailuresToTolerateCapability = "hostfailurestotolerate"
	// forceprovisioning parameter is deprecated as of Kubernetes v1.19.0
	ForceProvisioningCapability = "forceprovisioning"
	// cachereservation parameter is deprecated as of Kubernetes v1.19.0
	CacheReservationCapability = "cachereservation"
	// diskstripes parameter is deprecated as of Kubernetes v1.19.0
	DiskStripesCapability = "diskstripes"
	// objectspacereservation parameter is deprecated as of Kubernetes v1.19.0
	ObjectSpaceReservationCapability = "objectspacereservation"
	// iopslimit parameter is deprecated as of Kubernetes v1.19.0
	IopsLimitCapability                 = "iopslimit"
	HostFailuresToTolerateCapabilityMin = 0
	HostFailuresToTolerateCapabilityMax = 3
	ForceProvisioningCapabilityMin      = 0
	ForceProvisioningCapabilityMax      = 1
	CacheReservationCapabilityMin       = 0
	CacheReservationCapabilityMax       = 100
	DiskStripesCapabilityMin            = 1
	DiskStripesCapabilityMax            = 12
	ObjectSpaceReservationCapabilityMin = 0
	ObjectSpaceReservationCapabilityMax = 100
	IopsLimitCapabilityMin              = 0
)

Variables

View Source
var ErrProbeVolume = errors.New("error scanning attached volumes")

Functions

func ProbeVolumePlugins

func ProbeVolumePlugins() []volume.VolumePlugin

This is the primary entrypoint for volume plugins.

Types

type VolumeSpec added in v1.7.0

type VolumeSpec struct {
	Path              string
	Size              int
	Fstype            string
	StoragePolicyID   string
	StoragePolicyName string
	Labels            map[string]string
}

type VsphereDiskUtil

type VsphereDiskUtil struct{}

func (*VsphereDiskUtil) CreateVolume

func (util *VsphereDiskUtil) CreateVolume(v *vsphereVolumeProvisioner, selectedNode *v1.Node, selectedZone []string) (volSpec *VolumeSpec, err error)

CreateVolume creates a vSphere volume.

func (*VsphereDiskUtil) DeleteVolume

func (util *VsphereDiskUtil) DeleteVolume(vd *vsphereVolumeDeleter) error

DeleteVolume deletes a vSphere volume.

Jump to

Keyboard shortcuts

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