discovery

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFS          = "ext4"
	AnnoStorageReserve = "csi.aliyun.com/storage-reserved"
)

Variables

This section is empty.

Functions

func FilterDeviceInfo added in v0.5.2

func FilterDeviceInfo(nls *localv1alpha1.NodeLocalStorage) []string

func FilterInfo added in v0.5.2

func FilterInfo(info []string, include []string, exclude []string) []string

func FilterMPInfo added in v0.5.2

func FilterMPInfo(nls *localv1alpha1.NodeLocalStorage) []string

func FilterVGInfo added in v0.5.2

func FilterVGInfo(nls *localv1alpha1.NodeLocalStorage) []string

Types

type Discoverer

type Discoverer struct {
	*common.Configuration

	// K8sMounter used to verify mountpoints
	K8sMounter mount.Interface
	// contains filtered or unexported fields
}

Discoverer update block device, VG and mountpoint info to Cache

func NewDiscoverer

func NewDiscoverer(config *common.Configuration, kubeclientset kubernetes.Interface, localclientset clientset.Interface, snapclient snapshot.Interface, recorder record.EventRecorder) *Discoverer

NewDiscoverer return Discoverer

func (*Discoverer) Discover

func (d *Discoverer) Discover()

Discover update local storage periodically

func (*Discoverer) ExpandSnapshotLVIfNeeded

func (d *Discoverer) ExpandSnapshotLVIfNeeded()

func (*Discoverer) InitResource

func (d *Discoverer) InitResource()

InitResource will create relevant resource

type ReservedVGInfo

type ReservedVGInfo struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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