mds

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mds to manage a rook file system.

Package mds for file systems.

Package mds to manage a rook file system.

Package mds to manage a rook file system.

Index

Constants

This section is empty.

Variables

View Source
var FilesystemResource = opkit.CustomResource{
	Name:    "filesystem",
	Plural:  "filesystems",
	Group:   k8sutil.CustomResourceGroup,
	Version: k8sutil.V1Alpha1,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(Filesystem{}).Name(),
}

FilesystemResource represents the file system custom resource

Functions

func CreateFileSystem added in v0.6.0

func CreateFileSystem(context *clusterd.Context, clusterName string, f *model.FilesystemRequest, version string, hostNetwork bool) error

func Kind added in v0.6.0

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource added in v0.6.0

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type Filesystem added in v0.6.0

type Filesystem struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              FilesystemSpec `json:"spec"`
}

Filesystem is the definition of the file system custom resource

func (*Filesystem) Create added in v0.6.0

func (f *Filesystem) Create(context *clusterd.Context, version string, hostNetwork bool) error

Create the file system

func (*Filesystem) Delete added in v0.6.0

func (f *Filesystem) Delete(context *clusterd.Context) error

Delete the file system

type FilesystemController added in v0.6.0

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

FilesystemController represents a controller for file system custom resources

func NewFilesystemController added in v0.6.0

func NewFilesystemController(context *clusterd.Context, versionTag string, hostNetwork bool) *FilesystemController

NewFilesystemController create controller for watching file system custom resources created

func (*FilesystemController) StartWatch added in v0.6.0

func (c *FilesystemController) StartWatch(namespace string, stopCh chan struct{}) error

StartWatch watches for instances of Filesystem custom resources and acts on them

type FilesystemList added in v0.6.0

type FilesystemList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Filesystem `json:"items"`
}

FilesystemList is the definition of a list of file systems

type FilesystemSpec added in v0.6.0

type FilesystemSpec struct {
	// The metadata pool settings
	MetadataPool pool.PoolSpec `json:"metadataPool"`

	// The data pool settings
	DataPools []pool.PoolSpec `json:"dataPools"`

	// The mds pod info
	MetadataServer MetadataServerSpec `json:"metadataServer"`
}

FilesystemSpec represent the spec of a file system

type MetadataServerSpec added in v0.6.0

type MetadataServerSpec struct {
	// The number of metadata servers that are active. The remaining servers in the cluster will be in standby mode.
	ActiveCount int32 `json:"activeCount"`

	// Whether each active MDS instance will have an active standby with a warm metadata cache for faster failover.
	// If false, standbys will still be available, but will not have a warm metadata cache.
	ActiveStandby bool `json:"activeStandby"`

	// The affinity to place the mds pods (default is to place on all available node) with a daemonset
	Placement k8sutil.Placement `json:"placement"`
}

Jump to

Keyboard shortcuts

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