file

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: 34 Imported by: 0

Documentation

Overview

Package file manages a CephFS filesystem and the required daemons.

Package file manages a CephFS filesystem and the required daemons.

Package file manages a CephFS filesystem and the required daemons.

Index

Constants

This section is empty.

Variables

View Source
var CephFilesystemDependents = cephFilesystemDependents

CephFilesystemDependents returns the subvolume group(s) which exist in the ceph filesystem that should block deletion.

No RBD images are created by normal operations on filesystems, so there will be no images present to check if a filesystem has user data in it. Therefore, we need some other check for user data. We approximate such a check here by checking for subvolume groups that have subvolumes. Subvolume groups with no subvolumes don't block deletion.

Functions

func Add

func Add(mgr manager.Manager, context *clusterd.Context, opManagerContext context.Context, opConfig opcontroller.OperatorConfig) error

Add creates a new CephFilesystem Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func GenerateMetaDataPoolName

func GenerateMetaDataPoolName(fsName string) string

GenerateMetaDataPoolName generates MetaDataPool name by prefixing the filesystem name to the constant metaDataPoolSuffix

Types

type Filesystem

type Filesystem struct {
	Name      string
	Namespace string
}

Filesystem represents an instance of a Ceph filesystem (CephFS)

type ReconcileCephFilesystem

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

ReconcileCephFilesystem reconciles a CephFilesystem object

func (*ReconcileCephFilesystem) Reconcile

func (r *ReconcileCephFilesystem) Reconcile(context context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a CephFilesystem object and makes changes based on the state read and what is in the cephFilesystem.Spec The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Directories

Path Synopsis
Package mds provides methods for managing a Ceph mds cluster.
Package mds provides methods for managing a Ceph mds cluster.
Package mirror for mirroring
Package mirror for mirroring
Package subvolumegroup to manage CephFS subvolume groups
Package subvolumegroup to manage CephFS subvolume groups

Jump to

Keyboard shortcuts

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