Documentation ¶
Overview ¶
Package pool to manage a rook pool.
Index ¶
- Variables
- func ConvertRookLegacyPoolSpec(legacySpec rookv1alpha1.PoolSpec) cephv1beta1.PoolSpec
- func ModelToSpec(pool model.Pool) cephv1beta1.PoolSpec
- func ValidatePool(context *clusterd.Context, p *cephv1beta1.Pool) error
- func ValidatePoolSpec(context *clusterd.Context, namespace string, p *cephv1beta1.PoolSpec) error
- type PoolController
Constants ¶
This section is empty.
Variables ¶
View Source
var PoolResource = opkit.CustomResource{ Name: customResourceName, Plural: customResourceNamePlural, Group: cephv1beta1.CustomResourceGroup, Version: cephv1beta1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(cephv1beta1.Pool{}).Name(), }
PoolResource represents the Pool custom resource object
View Source
var PoolResourceRookLegacy = opkit.CustomResource{ Name: customResourceName, Plural: customResourceNamePlural, Group: rookv1alpha1.CustomResourceGroup, Version: rookv1alpha1.Version, Scope: apiextensionsv1beta1.NamespaceScoped, Kind: reflect.TypeOf(rookv1alpha1.Pool{}).Name(), }
Functions ¶
func ConvertRookLegacyPoolSpec ¶
func ConvertRookLegacyPoolSpec(legacySpec rookv1alpha1.PoolSpec) cephv1beta1.PoolSpec
func ModelToSpec ¶
func ModelToSpec(pool model.Pool) cephv1beta1.PoolSpec
func ValidatePool ¶
func ValidatePool(context *clusterd.Context, p *cephv1beta1.Pool) error
Validate the pool arguments
func ValidatePoolSpec ¶
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) *PoolController
NewPoolController create controller for watching pool custom resources created
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
Click to show internal directories.
Click to hide internal directories.