osd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package osd for the Ceph OSDs.

Package osd for the Ceph OSDs.

Package osd for the Ceph OSDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Namespace string

	Keyring string
	Version string
	Storage StorageSpec
	// contains filtered or unexported fields
}

Cluster keeps track of the OSDs

func New

func New(context *clusterd.Context, namespace, version string, storageSpec StorageSpec, dataDirHostPath string, placement k8sutil.Placement) *Cluster

New creates an instance of the OSD manager

func (*Cluster) Start

func (c *Cluster) Start() error

Start the osd management

type Config added in v0.4.0

type Config struct {
	StoreConfig cephosd.StoreConfig `json:"storeConfig,omitempty"`
	Location    string              `json:"location,omitempty"`
}

Config CRD settings

type Device added in v0.4.0

type Device struct {
	Name string `json:"name,omitempty"`
}

Device CRD settings

type Directory added in v0.4.0

type Directory struct {
	Path string `json:"path,omitempty"`
}

Directory CRD settings

type Node added in v0.4.0

type Node struct {
	Name        string      `json:"name,omitempty"`
	Devices     []Device    `json:"devices,omitempty"`
	Directories []Directory `json:"directories,omitempty"`
	Selection
	Config
}

Node specific CRD settings

type Selection added in v0.4.0

type Selection struct {
	// Whether to consume all the storage devices found on a machine
	UseAllDevices *bool `json:"useAllDevices,omitempty"`

	// A regular expression to allow more fine-grained selection of devices on nodes across the cluster
	DeviceFilter string `json:"deviceFilter,omitempty"`

	MetadataDevice string `json:"metadataDevice,omitempty"`
}

Selection CRD settings

type StorageSpec added in v0.4.0

type StorageSpec struct {
	Nodes       []Node `json:"nodes,omitempty"`
	UseAllNodes bool   `json:"useAllNodes,omitempty"`
	Selection
	Config
}

StorageSpec CRD settings

func (*StorageSpec) AnyUseAllDevices added in v0.4.0

func (s *StorageSpec) AnyUseAllDevices() bool

AnyUseAllDevices gets whether to use all devices

func (*StorageSpec) ClearUseAllDevices added in v0.4.0

func (s *StorageSpec) ClearUseAllDevices()

ClearUseAllDevices clears all devices

Jump to

Keyboard shortcuts

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