discover

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package discover to discover unused devices.

Index

Constants

This section is empty.

Variables

View Source
var (

	// AppName is the name of the pod
	AppName = "rook-discover"
	// NodeAttr is the attribute of that node
	NodeAttr = "rook.io/node"
	// LocalDiskCMData is the data name of the config map storing devices
	LocalDiskCMData = "devices"
	// LocalDiskCMName is name of the config map storing devices
	LocalDiskCMName = "local-device-%s"
)

Functions

func DeviceListsEqual added in v1.3.9

func DeviceListsEqual(old, new string) (bool, error)

DeviceListsEqual checks whether 2 lists are equal or not

func Run

func Run(context *clusterd.Context, probeInterval time.Duration, useCV bool) error

Run is the entry point of that package execution

Types

type CephVolumeInventory added in v1.3.9

type CephVolumeInventory struct {
	Path            string          `json:"path"`
	Available       bool            `json:"available"`
	RejectedReasons json.RawMessage `json:"rejected_reasons"`
	SysAPI          json.RawMessage `json:"sys_api"`
	LVS             json.RawMessage `json:"lvs"`
}

CephVolumeInventory is the Go struct representation of the json output

Jump to

Keyboard shortcuts

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