cluster

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RookCephNS                    = "rook-ceph"
	CephClusterName               = "rook-ceph"
	RookCephSharedFSMetadataPool  = "rook-shared-fs-metadata"
	RookCephSharedFSDataPool      = "rook-shared-fs-data0"
	RookCephObjectStoreService    = "rook-ceph-rgw-replicated"
	RookCephObjectStoreUserSecret = "rook-ceph-object-user-replicated-replicated"
)
View Source
const (
	DefaultEtcKubernetesDir = "/etc/kubernetes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Config ControllerConfig
	Log    *zap.SugaredLogger

	sync.Mutex
}

func NewController

func NewController(config ControllerConfig, log *zap.SugaredLogger) *Controller

func (*Controller) CephFilesystemOK

func (c *Controller) CephFilesystemOK(name string) (bool, error)

func (*Controller) PurgeNode

func (c *Controller) PurgeNode(ctx context.Context, name string, rook bool) error

PurgeNode cleans up a lost node.

func (*Controller) SetFilesystemReplication

func (c *Controller) SetFilesystemReplication(name string, level int) error

SetSharedFilesystemReplication ignores NotFound errors.

func (*Controller) SetObjectStoreReplication

func (c *Controller) SetObjectStoreReplication(name string, level int) error

SetObjectStoreReplication ignores NotFound errors.

func (*Controller) SetPoolReplication

func (c *Controller) SetPoolReplication(name string, level int) error

SetPoolReplicationLevel ignores NotFound errors.

func (*Controller) UseNodesForStorage

func (c *Controller) UseNodesForStorage(names []string) (int, error)

returns the number of nodes used for storage, which may be higher than the number of names passed in if a node is currenlty not ready but has not been purged

func (*Controller) WaitCephFilesystem

func (c *Controller) WaitCephFilesystem(ctx context.Context, name string) error

type ControllerConfig

type ControllerConfig struct {
	Client          kubernetes.Interface
	ClientConfig    *restclient.Config
	CephV1          *cephv1.CephV1Client
	CertificatesDir string
}

Jump to

Keyboard shortcuts

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