Documentation ¶
Overview ¶
Package gcepd contains the internal representation of GCE PersistentDisk volumes.
Index ¶
Constants ¶
const (
VolumeLimitBig = 127
)
The constants are used to map from the machine type (number of CPUs) to the limit of persistent disks that can be attached to an instance. Please refer to gcloud doc https://cloud.google.com/compute/docs/disks/#increased_persistent_disk_limits These constants are all the documented attach limit minus one because the node boot disk is considered an attachable disk so effective attach limit is one less.
Variables ¶
This section is empty.
Functions ¶
func ProbeVolumePlugins ¶
func ProbeVolumePlugins() []volume.VolumePlugin
ProbeVolumePlugins is the primary entrypoint for volume plugins.
Types ¶
type GCEDiskUtil ¶
type GCEDiskUtil struct{}
GCEDiskUtil provides operation for GCE PD
func (*GCEDiskUtil) CreateVolume ¶
func (util *GCEDiskUtil) CreateVolume(c *gcePersistentDiskProvisioner, node *v1.Node, allowedTopologies []v1.TopologySelectorTerm) (string, int, map[string]string, string, error)
CreateVolume creates a GCE PD. Returns: gcePDName, volumeSizeGB, labels, fsType, error
func (*GCEDiskUtil) DeleteVolume ¶
func (util *GCEDiskUtil) DeleteVolume(d *gcePersistentDiskDeleter) error
DeleteVolume deletes a GCE PD Returns: error