cluster

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 68 Imported by: 72

Documentation

Overview

Package cluster to manage Kubernetes storage.

Package cluster to manage a Ceph cluster.

Package cluster to manage a Ceph cluster.

Package cluster to manage a Ceph cluster.

Package cluster to manage a Ceph cluster.

Package cluster to manage a Ceph cluster.

Package cluster to manage a Ceph cluster.

Package cluster to manage a Ceph cluster.

Package cluster to manage a Ceph cluster.

Package cluster to manage a Ceph cluster.

Index

Constants

View Source
const (

	// CleanupAppName is the cluster clean up job name
	CleanupAppName = "rook-ceph-cleanup"
)
View Source
const (
	// DefaultClusterName states the default name of the rook-cluster if not provided.
	DefaultClusterName = "rook-ceph"
)

Variables

AddToManagerFuncs is a list of functions to add all Controllers to the Manager (entrypoint for controller)

View Source
var AddToManagerFuncsMaintenance = []func(manager.Manager, *controllerconfig.Context) error{
	clusterdisruption.Add,
}

AddToManagerFuncsMaintenance is a list of functions to add all Controllers to the Manager (entrypoint for controller)

View Source
var ControllerTypeMeta = metav1.TypeMeta{
	Kind:       opcontroller.ClusterResource.Kind,
	APIVersion: opcontroller.ClusterResource.APIVersion,
}

ControllerTypeMeta Sets the type meta for the controller main object

View Source
var (
	// EnableMachineDisruptionBudget checks whether machine disruption budget is enabled
	EnableMachineDisruptionBudget bool
)
View Source
var MachineDisruptionBudgetAddToManagerFuncs = []func(manager.Manager, *controllerconfig.Context) error{
	machinelabel.Add,
	machinedisruption.Add,
}

MachineDisruptionBudgetAddToManagerFuncs is a list of fencing related functions to add all Controllers to the Manager (entrypoint for controller)

Functions

func Add added in v1.4.0

func Add(mgr manager.Manager, ctx *clusterd.Context, clusterController *ClusterController) error

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

func AddToManager added in v1.2.0

func AddToManager(m manager.Manager, c *controllerconfig.Context, clusterController *ClusterController) error

AddToManager adds all the registered controllers to the passed manager. each controller package will have an Add method listed in AddToManagerFuncs which will setup all the necessary watch

func CephClusterDependents added in v1.7.1

func CephClusterDependents(c *clusterd.Context, namespace string) (*dependents.DependentList, error)

CephClusterDependents returns a DependentList of dependents of a CephCluster in the namespace.

Types

type ClusterController

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

ClusterController controls an instance of a Rook cluster

func NewClusterController

func NewClusterController(context *clusterd.Context, rookImage string, volumeAttachment attachment.Attachment, operatorConfigCallbacks []func() error, addClusterCallbacks []func() error) *ClusterController

NewClusterController create controller for watching cluster custom resources created

func (*ClusterController) StartOperatorSettingsWatch added in v1.4.0

func (c *ClusterController) StartOperatorSettingsWatch(stopCh chan struct{})

StartOperatorSettingsWatch starts the operator settings watcher

func (*ClusterController) StopWatch

func (c *ClusterController) StopWatch()

StopWatch stop watchers

type ReconcileCephCluster added in v1.4.0

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

ReconcileCephCluster reconciles a CephFilesystem object

func (*ReconcileCephCluster) Reconcile added in v1.4.0

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

Reconcile reads that state of the cluster for a CephCluster object and makes changes based on the state read and what is in the cephCluster.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 mgr for the Ceph manager.
Package mgr for the Ceph manager.
Package mon provides methods for creating clusters of Ceph mons in Kubernetes, for monitoring the cluster's status, for taking corrective actions if the status is non-ideal, and for reporting mon cluster failures.
Package mon provides methods for creating clusters of Ceph mons in Kubernetes, for monitoring the cluster's status, for taking corrective actions if the status is non-ideal, and for reporting mon cluster failures.
osd
Package osd for the Ceph OSDs.
Package osd for the Ceph OSDs.
config
Package config for OSD config managed by the operator
Package config for OSD config managed by the operator
Package rbd for mirroring
Package rbd for mirroring

Jump to

Keyboard shortcuts

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