pool

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package pool to manage a rook pool.

Index

Constants

This section is empty.

Variables

View Source
var PoolResource = opkit.CustomResource{
	Name:    customResourceName,
	Plural:  customResourceNamePlural,
	Group:   rookalpha.CustomResourceGroup,
	Version: rookalpha.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(rookalpha.Pool{}).Name(),
}

PoolResource represents the Pool custom resource object

Functions

func ModelToSpec added in v0.6.0

func ModelToSpec(pool model.Pool) rookalpha.PoolSpec

func ValidatePool added in v0.7.0

func ValidatePool(context *clusterd.Context, p *rookalpha.Pool) error

Validate the pool arguments

func ValidatePoolSpec added in v0.7.0

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

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

Jump to

Keyboard shortcuts

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