cockroach

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureCockroachCluster

func ConfigureCockroachCluster(_ context.Context, cm resource.Claim, cs resource.Class, mg resource.Managed) error

ConfigureCockroachCluster configures the supplied instance (presumed to be a CockroachCluster) using the supplied instance claim (presumed to be a PostgreSQLInstance) and instance class.

Types

type ClaimController

type ClaimController struct{}

ClaimController is responsible for adding the PostgreSQLInstance claim controller and its corresponding reconciler to the manager with any runtime configuration.

func (*ClaimController) SetupWithManager

func (c *ClaimController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager adds a controller that reconciles PostgreSQLInstance instance claims.

type ClaimDefaultingController

type ClaimDefaultingController struct{}

A ClaimDefaultingController reconciles Cluster claims that omit their resource ref, class ref, and class selector by choosing a default Rook Cockroach Cluster class if one exists.

func (*ClaimDefaultingController) SetupWithManager

func (c *ClaimDefaultingController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the ClaimDefaultingController using the supplied manager.

type ClaimSchedulingController

type ClaimSchedulingController struct{}

A ClaimSchedulingController reconciles PostgreSQLInstance claims that include a class selector but omit their class and resource references by picking a random matching Rook Cockroach Cluster class, if any.

func (*ClaimSchedulingController) SetupWithManager

func (c *ClaimSchedulingController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the ClaimSchedulingController using the supplied manager.

type Controller

type Controller struct{}

Controller is responsible for adding the CockroachCluster controller and its corresponding reconciler to the manager with any runtime configuration.

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager creates a new CockroachCluster Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and start it when the Manager is Started.

Jump to

Keyboard shortcuts

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