file

package
v0.0.0-...-6f3db3d Latest Latest
Warning

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

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

Documentation

Overview

Package file manages a CephFS filesystem and the required daemons.

Index

Constants

This section is empty.

Variables

View Source
var FilesystemResource = k8sutil.CustomResource{
	Name:    "cephfilesystem",
	Plural:  "cephfilesystems",
	Group:   cephv1.CustomResourceGroup,
	Version: cephv1.Version,
	Kind:    reflect.TypeOf(cephv1.CephFilesystem{}).Name(),
}

FilesystemResource represents the filesystem custom resource

Functions

This section is empty.

Types

type Filesystem

type Filesystem struct {
	Name string
	// contains filtered or unexported fields
}

Filesystem represents an instance of a Ceph filesystem (CephFS)

type FilesystemController

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

FilesystemController represents a controller for filesystem custom resources

func NewFilesystemController

func NewFilesystemController(
	clusterInfo *cephconfig.ClusterInfo,
	context *clusterd.Context,
	namespace string,
	rookVersion string,
	clusterSpec *cephv1.ClusterSpec,
	ownerRef metav1.OwnerReference,
	dataDirHostPath string,
) *FilesystemController

NewFilesystemController create controller for watching filesystem custom resources created

func (*FilesystemController) ParentClusterChanged

func (c *FilesystemController) ParentClusterChanged(cluster cephv1.ClusterSpec, clusterInfo *cephconfig.ClusterInfo, isUpgrade bool)

ParentClusterChanged determines wether or not a CR update has been sent

func (*FilesystemController) StartWatch

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

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

Directories

Path Synopsis
Package mds provides methods for managing a Ceph mds cluster.
Package mds provides methods for managing a Ceph mds cluster.

Jump to

Keyboard shortcuts

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