discover

package
v0.0.0-...-331d270 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 19 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

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

DeviceListsEqual checks whether 2 lists are equal or not

func Run

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

Run is the entry point of that package execution

Types

type CephVolumeInventory

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