cluster

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 47 Imported by: 0

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.

Index

Constants

View Source
const (
	// DefaultClusterName states the default name of the rook-cluster if not provided.
	DefaultClusterName = "rook-ceph"
)

Variables

View Source
var AddToManagerFuncs = []func(manager.Manager) error{
	crash.Add,
}

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

View Source
var ClusterResource = opkit.CustomResource{
	Name:    "cephcluster",
	Plural:  "cephclusters",
	Group:   cephv1.CustomResourceGroup,
	Version: cephv1.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(cephv1.CephCluster{}).Name(),
}

ClusterResource operator-kit Custom Resource Definition

Functions

func AddToManager added in v1.2.0

func AddToManager(m manager.Manager) 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 ClusterOwnerRef

func ClusterOwnerRef(clusterName, clusterID string) metav1.OwnerReference

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, addClusterCallbacks []func(*cephv1.ClusterSpec) error, removeClusterCallbacks []func() error) *ClusterController

NewClusterController create controller for watching cluster custom resources created

func (*ClusterController) GetClusterCount added in v1.2.0

func (c *ClusterController) GetClusterCount() int

func (*ClusterController) StartWatch

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

StartWatch watches instances of cluster resources

func (*ClusterController) StopWatch

func (c *ClusterController) StopWatch()

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 Copyright 2016 The Rook Authors.
Package config for OSD config managed by the operator Package config for OSD config managed by the operator Copyright 2016 The Rook Authors.
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