pool

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pool to manage a rook pool.

Index

Constants

This section is empty.

Variables

View Source
var PoolResource = opkit.CustomResource{
	Name:    "cephblockpool",
	Plural:  "cephblockpools",
	Group:   cephv1.CustomResourceGroup,
	Version: cephv1.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(cephv1.CephBlockPool{}).Name(),
}

PoolResource represents the Pool custom resource object

Functions

func ModelToSpec

func ModelToSpec(pool model.Pool) cephv1.PoolSpec

func ValidatePool

func ValidatePool(context *clusterd.Context, p *cephv1.CephBlockPool) error

Validate the pool arguments

func ValidatePoolSpec

func ValidatePoolSpec(context *clusterd.Context, namespace string, p *cephv1.PoolSpec) error

ValidatePoolSpec validates the Ceph block pool spec CR

Types

type PoolController

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

PoolController represents a controller object for pool custom resources

func NewPoolController

func NewPoolController(context *clusterd.Context, clusterSpec *cephv1.ClusterSpec) *PoolController

NewPoolController create controller for watching pool custom resources created

func (*PoolController) ParentClusterChanged added in v1.0.0

func (c *PoolController) ParentClusterChanged(cluster cephv1.ClusterSpec, clusterInfo *cephconfig.ClusterInfo, isUpgrade bool)

ParentClusterChanged determines wether or not a CR update has been sent

func (*PoolController) StartWatch

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

Watch watches for instances of Pool custom resources and acts on them

Jump to

Keyboard shortcuts

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