kubernetesk8s.io/kubernetes/pkg/volume/rbd Index | Files

package rbd

import "k8s.io/kubernetes/pkg/volume/rbd"

Package rbd contains the internal representation of Rados Block Store (Ceph) volumes.

Index

Functions

func ProbeVolumePlugins

func ProbeVolumePlugins() []volume.VolumePlugin

This is the primary entrypoint for volume plugins.

Types

type RBDUtil

type RBDUtil struct{}

RBDUtil implements diskManager interface.

func (*RBDUtil) AttachDisk

func (util *RBDUtil) AttachDisk(b rbdMounter) (string, error)

AttachDisk attaches the disk on the node. If Volume is not read-only, acquire a lock on image first.

func (*RBDUtil) CreateImage

func (util *RBDUtil) CreateImage(p *rbdVolumeProvisioner) (r *v1.RBDPersistentVolumeSource, size int, err error)

func (*RBDUtil) DeleteImage

func (util *RBDUtil) DeleteImage(p *rbdVolumeDeleter) error

func (*RBDUtil) DetachDisk

func (util *RBDUtil) DetachDisk(plugin *rbdPlugin, deviceMountPath string, device string) error

DetachDisk detaches the disk from the node. It detaches device from the node if device is provided, and removes the lock if there is persisted RBD info under deviceMountPath.

func (*RBDUtil) ExpandImage

func (util *RBDUtil) ExpandImage(rbdExpander *rbdVolumeExpander, oldSize resource.Quantity, newSize resource.Quantity) (resource.Quantity, error)

ExpandImage runs rbd resize command to resize the specified image

func (*RBDUtil) MakeGlobalPDName

func (util *RBDUtil) MakeGlobalPDName(rbd rbd) string

Source Files

attacher.go disk_manager.go doc.go rbd.go rbd_util.go

Version
v1.9.6
Published
Mar 20, 2018
Platform
js/wasm
Imports
26 packages
Last checked
24 minutes ago

Tools for package owners.