Version: v5.5.0+incompatible Latest Latest

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 13 Imported by: 9




This section is empty.


This section is empty.


func GetStorageNodeAffinityFromAnnotation

func GetStorageNodeAffinityFromAnnotation(annotations map[string]string) (*v1.NodeAffinity, error)

GetStorageNodeAffinityFromAnnotation gets the json serialized data from PersistentVolume.Annotations and converts it to the NodeAffinity type in core.

func StorageNodeAffinityToAlphaAnnotation

func StorageNodeAffinityToAlphaAnnotation(annotations map[string]string, affinity *v1.NodeAffinity) error

StorageNodeAffinityToAlphaAnnotation converts NodeAffinity type to Alpha annotation for use in PersistentVolumes


type Discoverer

type Discoverer struct {
	Labels map[string]string
	// ProcTable is a reference to running processes so that we can prevent PV from being created while
	// it is being cleaned
	CleanupTracker *deleter.CleanupStatusTracker
	// contains filtered or unexported fields

Discoverer finds available volumes and creates PVs for them It looks for volumes in the directories specified in the discoveryMap

func NewDiscoverer

func NewDiscoverer(config *common.RuntimeConfig, cleanupTracker *deleter.CleanupStatusTracker) (*Discoverer, error)

NewDiscoverer creates a Discoverer object that will scan through the configured directories and create local PVs for any new directories found

func (*Discoverer) DiscoverLocalVolumes

func (d *Discoverer) DiscoverLocalVolumes()

DiscoverLocalVolumes reads the configured discovery paths, and creates PVs for the new volumes

Source Files

Jump to

Keyboard shortcuts

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