Documentation ¶
Overview ¶
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 ( CustomResourceName = "cluster" CustomResourceNamePlural = "clusters" )
View Source
const (
// DefaultClusterName states the default name of the rook-cluster if not provided.
DefaultClusterName = "rook"
)
Variables ¶
View Source
var ClusterResource = opkit.CustomResource{ Name: CustomResourceName, Plural: CustomResourceNamePlural, Group: cephv1beta1.CustomResourceGroup, Version: cephv1beta1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(cephv1beta1.Cluster{}).Name(), }
View Source
var ClusterResourceRookLegacy = opkit.CustomResource{ Name: CustomResourceName, Plural: CustomResourceNamePlural, Group: rookv1alpha1.CustomResourceGroup, Version: rookv1alpha1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(rookv1alpha1.Cluster{}).Name(), }
Functions ¶
func ClusterOwnerRef ¶
func ClusterOwnerRef(namespace, 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) *ClusterController
NewClusterController create controller for watching cluster custom resources created
func (*ClusterController) StartWatch ¶
func (c *ClusterController) StartWatch(namespace string, stopCh chan struct{}) error
Watch 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 for the Ceph monitors.
|
Package mon for the Ceph monitors. |
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. |
Click to show internal directories.
Click to hide internal directories.