package gce_pd
import "k8s.io/kubernetes/pkg/volume/gce_pd"
Package gce_pd contains the internal representation of GCE PersistentDisk volumes.
Index ¶
Constants ¶
const ( OneCPU = 1 EightCPUs = 8 VolumeLimit16 = 16 VolumeLimit32 = 32 VolumeLimit64 = 64 VolumeLimit128 = 128 )
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
Functions ¶
func ProbeVolumePlugins ¶
func ProbeVolumePlugins() []volume.VolumePlugin
This is the primary entrypoint for volume plugins.
Types ¶
type GCEDiskUtil ¶
type GCEDiskUtil struct{}
func (*GCEDiskUtil) CreateVolume ¶
func (gceutil *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
Source Files ¶
attacher.go doc.go gce_pd.go gce_pd_block.go gce_util.go
- Version
- v1.12.3
- Published
- Nov 26, 2018
- Platform
- linux/amd64
- Imports
- 27 packages
- Last checked
- 5 minutes ago –
Tools for package owners.